You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Maik77 <ma...@arcor.de> on 2008/02/17 17:25:14 UTC

[Trinidad] Icon (attribute) not rendered

Hi,

I want to use some components with the icon-attribute
(tr:commandNavigationItem and tr:panelPopup), but the icon is never
rendered.
The path to the image should be correct, because using a simple  tag with
the same path is showing the image.
Short example:
<?xml version="1.0" encoding="UTF-8"?>
<jsp:root xmlns="http://www.w3.org/1999/xhtml"
	xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:f="http://java.sun.com/jsf/core"
        xmlns:tr="http://myfaces.apache.org/trinidad"
	version="2.0">
<f:view>  	
    <tr:document title="test">
	  <tr:form>
	  	<tr:commandNavigationItem text="test" icon="/images/warn.gif"/>
	  </tr:form>
    </tr:document>      
  </f:view>
</jsp:root>

The text is rendered, but not the icon.
I'm using Trinidad 1.2.6 (old versions had the same prob) and Facelets
1.1.14.

Do I have to configure something special, or what could be my fault?

-- 
View this message in context: http://www.nabble.com/-Trinidad--Icon-%28attribute%29-not-rendered-tp15530596p15530596.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: [Trinidad] Icon (attribute) not rendered

Posted by Maik77 <ma...@arcor.de>.
Hi,

that's not working, too.
Do you already know, when the bug will be solved?


Matthias Wessendorf-4 wrote:
> 
> Hi.
> 
> On Feb 18, 2008 7:37 PM, Maik77 <ma...@arcor.de> wrote:
>>
>> Hi,
>>
>> I found out, that tr:commandNavigationItem is only workig inside a
>> tr:navigationPane. OK for that.
>> But tr:panelPopup is still not working! I also tried to modify the
>> PanelPopup Demo from irian, but no icon is displayed there, too. My path
>> to
>> the image is correct!
> 
> just looked at the code and saw the bug, not used :-)
> 
>>
>> Does panelPopup also has to be inside a special pane or something???
> 
> nope, simply a bug.
> 
> As a (quick) work around you may try:
> 
> <tr:panelPopup>
>   <f:facet name="trigger">
>     <tr:panelGroupLayout>
>       <tr:icon name="info"/>
>       <tr:outputText value="Link Text"/>
>     </tr:panelGroupLayout>
>   </f:facet>
>   ...
> </tr:panelPopup>
> 
> Please see [1] on the facet.
> 
> -M
> 
> [1]
> http://myfaces.apache.org/trinidad/trinidad-api/tagdoc/tr_panelPopup.html
> 
>>
>> Wfg
>>
>> Maik
>>
>>
>>
>> Matthias Wessendorf-4 wrote:
>> >
>> > Hi,
>> >
>> > On Feb 17, 2008 5:25 PM, Maik77 <ma...@arcor.de> wrote:
>> >>
>> >> Hi,
>> >>
>> >> I want to use some components with the icon-attribute
>> >> (tr:commandNavigationItem and tr:panelPopup), but the icon is never
>> >> rendered.
>> >> The path to the image should be correct, because using a simple  tag
>> with
>> >> the same path is showing the image.
>> >> Short example:
>> >> <?xml version="1.0" encoding="UTF-8"?>
>> >> <jsp:root xmlns="http://www.w3.org/1999/xhtml"
>> >>         xmlns:jsp="http://java.sun.com/JSP/Page"
>> >>         xmlns:f="http://java.sun.com/jsf/core"
>> >>         xmlns:tr="http://myfaces.apache.org/trinidad"
>> >>         version="2.0">
>> >> <f:view>
>> >>     <tr:document title="test">
>> >>           <tr:form>
>> >>                 <tr:commandNavigationItem text="test"
>> >> icon="/images/warn.gif"/>
>> >>           </tr:form>
>> >>     </tr:document>
>> >>   </f:view>
>> >> </jsp:root>
>> >>
>> >> The text is rendered, but not the icon.
>> >> I'm using Trinidad 1.2.6 (old versions had the same prob) and Facelets
>> >> 1.1.14.
>> >>
>> >> Do I have to configure something special, or what could be my fault?
>> >
>> >
>> > checking the trinidad demos, it works
>> >
>> http://example.irian.at/trinidad-demo-20080218/faces/components/commandNavigationItem.jspx
>> >
>> > The source code:
>> >
>> http://example.irian.at/trinidad-demo-20080218/faces/components/commandNavigationItem.jspx.source
>> >
>> > contains some commandNavigationItem that have an icon, like:
>> >
>> > <tr:commandNavigationItem text="Icon Item"
>> >   actionListener="#{demoCommandNavigationItem.navigationItemAction}"
>> >   icon="/components/images/file.gif"
>> >   partialSubmit="true"/>
>> >
>> >
>> > make sure, that "warn.gif" is available via
>> >
>> > http://server:port/context/images/warn.gif
>> >
>> > thx,
>> > Matthias
>> >
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/-Trinidad--Icon-%28attribute%29-not-rendered-tp15530596p15530596.html
>> >> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>> >>
>> >>
>> >
>> >
>> >
>> > --
>> > Matthias Wessendorf
>> >
>> > further stuff:
>> > blog: http://matthiaswessendorf.wordpress.com/
>> > sessions: http://www.slideshare.net/mwessendorf
>> > mail: matzew-at-apache-dot-org
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/-Trinidad--Icon-%28attribute%29-not-rendered-tp15530596p15547189.html
>>
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>>
> 
> 
> 
> -- 
> Matthias Wessendorf
> 
> further stuff:
> blog: http://matthiaswessendorf.wordpress.com/
> sessions: http://www.slideshare.net/mwessendorf
> mail: matzew-at-apache-dot-org
> 
> 

-- 
View this message in context: http://www.nabble.com/-Trinidad--Icon-%28attribute%29-not-rendered-tp15530596p15664277.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: [Trinidad] Icon (attribute) not rendered

Posted by Matthias Wessendorf <ma...@apache.org>.
Hi.

On Feb 18, 2008 7:37 PM, Maik77 <ma...@arcor.de> wrote:
>
> Hi,
>
> I found out, that tr:commandNavigationItem is only workig inside a
> tr:navigationPane. OK for that.
> But tr:panelPopup is still not working! I also tried to modify the
> PanelPopup Demo from irian, but no icon is displayed there, too. My path to
> the image is correct!

just looked at the code and saw the bug, not used :-)

>
> Does panelPopup also has to be inside a special pane or something???

nope, simply a bug.

As a (quick) work around you may try:

<tr:panelPopup>
  <f:facet name="trigger">
    <tr:panelGroupLayout>
      <tr:icon name="info"/>
      <tr:outputText value="Link Text"/>
    </tr:panelGroupLayout>
  </f:facet>
  ...
</tr:panelPopup>

Please see [1] on the facet.

-M

[1] http://myfaces.apache.org/trinidad/trinidad-api/tagdoc/tr_panelPopup.html

>
> Wfg
>
> Maik
>
>
>
> Matthias Wessendorf-4 wrote:
> >
> > Hi,
> >
> > On Feb 17, 2008 5:25 PM, Maik77 <ma...@arcor.de> wrote:
> >>
> >> Hi,
> >>
> >> I want to use some components with the icon-attribute
> >> (tr:commandNavigationItem and tr:panelPopup), but the icon is never
> >> rendered.
> >> The path to the image should be correct, because using a simple  tag with
> >> the same path is showing the image.
> >> Short example:
> >> <?xml version="1.0" encoding="UTF-8"?>
> >> <jsp:root xmlns="http://www.w3.org/1999/xhtml"
> >>         xmlns:jsp="http://java.sun.com/JSP/Page"
> >>         xmlns:f="http://java.sun.com/jsf/core"
> >>         xmlns:tr="http://myfaces.apache.org/trinidad"
> >>         version="2.0">
> >> <f:view>
> >>     <tr:document title="test">
> >>           <tr:form>
> >>                 <tr:commandNavigationItem text="test"
> >> icon="/images/warn.gif"/>
> >>           </tr:form>
> >>     </tr:document>
> >>   </f:view>
> >> </jsp:root>
> >>
> >> The text is rendered, but not the icon.
> >> I'm using Trinidad 1.2.6 (old versions had the same prob) and Facelets
> >> 1.1.14.
> >>
> >> Do I have to configure something special, or what could be my fault?
> >
> >
> > checking the trinidad demos, it works
> > http://example.irian.at/trinidad-demo-20080218/faces/components/commandNavigationItem.jspx
> >
> > The source code:
> > http://example.irian.at/trinidad-demo-20080218/faces/components/commandNavigationItem.jspx.source
> >
> > contains some commandNavigationItem that have an icon, like:
> >
> > <tr:commandNavigationItem text="Icon Item"
> >   actionListener="#{demoCommandNavigationItem.navigationItemAction}"
> >   icon="/components/images/file.gif"
> >   partialSubmit="true"/>
> >
> >
> > make sure, that "warn.gif" is available via
> >
> > http://server:port/context/images/warn.gif
> >
> > thx,
> > Matthias
> >
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/-Trinidad--Icon-%28attribute%29-not-rendered-tp15530596p15530596.html
> >> Sent from the MyFaces - Users mailing list archive at Nabble.com.
> >>
> >>
> >
> >
> >
> > --
> > Matthias Wessendorf
> >
> > further stuff:
> > blog: http://matthiaswessendorf.wordpress.com/
> > sessions: http://www.slideshare.net/mwessendorf
> > mail: matzew-at-apache-dot-org
> >
> >
>
> --
> View this message in context: http://www.nabble.com/-Trinidad--Icon-%28attribute%29-not-rendered-tp15530596p15547189.html
>
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>



-- 
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
mail: matzew-at-apache-dot-org

Re: [Trinidad] dialog question

Posted by Scott O'Bryan <da...@gmail.com>.
You would need to pop up a new window using javascript and then 
reference a servlet which serves the data.  The other option would be to 
put a JSP include inside of some f:verbatum tags.  The include would 
point to the servlet resource.

The third option is a custom JSF component.

Scott

Perkins, Nate-P63196 wrote:
>  I have page that contains a table of information.  There are 2 command
> buttons for the table, one generates a PDF document based on the
> selected row data in the table and allows the user to download the PDF
> (I use the fileDownloadListener).  This works great.
>
> The second button is supposed to be a "view" of the selected row data.
> My PDF generator has the option of generating HTML to an OutputStream.
> I would like my "view" button to load a dialog and show the generated
> HTML but I do not have any idea how to do that.  How can I load a
> trinidad dialog and supply generated HTML into the output stream??
>
> thanks
>
> Nate Perkins
> General Dynamics C4 Systems
>
>   
>> This email message is for the sole use of the intended recipient(s) and
>>     
> may contain GDC4S
>   
>> confidential or privileged information. Any unauthorized review, use,
>>     
> disclosure or distribution
>   
>> is prohibited. If you are not an intended recipient, please contact
>>     
> the sender by reply email and
>   
>> destroy all copies of the original message.
>>
>>     


[Trinidad] dialog question

Posted by "Perkins, Nate-P63196" <Na...@gdc4s.com>.
 I have page that contains a table of information.  There are 2 command
buttons for the table, one generates a PDF document based on the
selected row data in the table and allows the user to download the PDF
(I use the fileDownloadListener).  This works great.

The second button is supposed to be a "view" of the selected row data.
My PDF generator has the option of generating HTML to an OutputStream.
I would like my "view" button to load a dialog and show the generated
HTML but I do not have any idea how to do that.  How can I load a
trinidad dialog and supply generated HTML into the output stream??

thanks

Nate Perkins
General Dynamics C4 Systems

>This email message is for the sole use of the intended recipient(s) and
may contain GDC4S
> confidential or privileged information. Any unauthorized review, use,
disclosure or distribution
> is prohibited. If you are not an intended recipient, please contact
the sender by reply email and
> destroy all copies of the original message.
>

Re: [Trinidad] Icon (attribute) not rendered

Posted by Maik77 <ma...@arcor.de>.
Hi,

I found out, that tr:commandNavigationItem is only workig inside a
tr:navigationPane. OK for that.
But tr:panelPopup is still not working! I also tried to modify the
PanelPopup Demo from irian, but no icon is displayed there, too. My path to
the image is correct!

Does panelPopup also has to be inside a special pane or something???

Wfg

Maik


Matthias Wessendorf-4 wrote:
> 
> Hi,
> 
> On Feb 17, 2008 5:25 PM, Maik77 <ma...@arcor.de> wrote:
>>
>> Hi,
>>
>> I want to use some components with the icon-attribute
>> (tr:commandNavigationItem and tr:panelPopup), but the icon is never
>> rendered.
>> The path to the image should be correct, because using a simple  tag with
>> the same path is showing the image.
>> Short example:
>> <?xml version="1.0" encoding="UTF-8"?>
>> <jsp:root xmlns="http://www.w3.org/1999/xhtml"
>>         xmlns:jsp="http://java.sun.com/JSP/Page"
>>         xmlns:f="http://java.sun.com/jsf/core"
>>         xmlns:tr="http://myfaces.apache.org/trinidad"
>>         version="2.0">
>> <f:view>
>>     <tr:document title="test">
>>           <tr:form>
>>                 <tr:commandNavigationItem text="test"
>> icon="/images/warn.gif"/>
>>           </tr:form>
>>     </tr:document>
>>   </f:view>
>> </jsp:root>
>>
>> The text is rendered, but not the icon.
>> I'm using Trinidad 1.2.6 (old versions had the same prob) and Facelets
>> 1.1.14.
>>
>> Do I have to configure something special, or what could be my fault?
> 
> 
> checking the trinidad demos, it works
> http://example.irian.at/trinidad-demo-20080218/faces/components/commandNavigationItem.jspx
> 
> The source code:
> http://example.irian.at/trinidad-demo-20080218/faces/components/commandNavigationItem.jspx.source
> 
> contains some commandNavigationItem that have an icon, like:
> 
> <tr:commandNavigationItem text="Icon Item"
>   actionListener="#{demoCommandNavigationItem.navigationItemAction}"
>   icon="/components/images/file.gif"
>   partialSubmit="true"/>
> 
> 
> make sure, that "warn.gif" is available via
> 
> http://server:port/context/images/warn.gif
> 
> thx,
> Matthias
> 
>>
>> --
>> View this message in context:
>> http://www.nabble.com/-Trinidad--Icon-%28attribute%29-not-rendered-tp15530596p15530596.html
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>>
> 
> 
> 
> -- 
> Matthias Wessendorf
> 
> further stuff:
> blog: http://matthiaswessendorf.wordpress.com/
> sessions: http://www.slideshare.net/mwessendorf
> mail: matzew-at-apache-dot-org
> 
> 

-- 
View this message in context: http://www.nabble.com/-Trinidad--Icon-%28attribute%29-not-rendered-tp15530596p15547189.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: [Trinidad] Icon (attribute) not rendered

Posted by Matthias Wessendorf <ma...@apache.org>.
Hi,

On Feb 17, 2008 5:25 PM, Maik77 <ma...@arcor.de> wrote:
>
> Hi,
>
> I want to use some components with the icon-attribute
> (tr:commandNavigationItem and tr:panelPopup), but the icon is never
> rendered.
> The path to the image should be correct, because using a simple  tag with
> the same path is showing the image.
> Short example:
> <?xml version="1.0" encoding="UTF-8"?>
> <jsp:root xmlns="http://www.w3.org/1999/xhtml"
>         xmlns:jsp="http://java.sun.com/JSP/Page"
>         xmlns:f="http://java.sun.com/jsf/core"
>         xmlns:tr="http://myfaces.apache.org/trinidad"
>         version="2.0">
> <f:view>
>     <tr:document title="test">
>           <tr:form>
>                 <tr:commandNavigationItem text="test" icon="/images/warn.gif"/>
>           </tr:form>
>     </tr:document>
>   </f:view>
> </jsp:root>
>
> The text is rendered, but not the icon.
> I'm using Trinidad 1.2.6 (old versions had the same prob) and Facelets
> 1.1.14.
>
> Do I have to configure something special, or what could be my fault?


checking the trinidad demos, it works
http://example.irian.at/trinidad-demo-20080218/faces/components/commandNavigationItem.jspx

The source code:
http://example.irian.at/trinidad-demo-20080218/faces/components/commandNavigationItem.jspx.source

contains some commandNavigationItem that have an icon, like:

<tr:commandNavigationItem text="Icon Item"
  actionListener="#{demoCommandNavigationItem.navigationItemAction}"
  icon="/components/images/file.gif"
  partialSubmit="true"/>


make sure, that "warn.gif" is available via

http://server:port/context/images/warn.gif

thx,
Matthias

>
> --
> View this message in context: http://www.nabble.com/-Trinidad--Icon-%28attribute%29-not-rendered-tp15530596p15530596.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>



-- 
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
mail: matzew-at-apache-dot-org