You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by SO...@austin.rr.com on 2007/03/29 03:17:48 UTC

StreamingAddResource Exception with Facelets

I am trying to incorporate the performance improvements using:

<context-param>
   <param-name>org.apache.myfaces.ADD_RESOURCE_CLASS</param-name>
  
<param-value>org.apache.myfaces.component.html.util.StreamingAddResource</param-value>
</context-param>

with <t:document*>  when using facelets.

I am getting an exception when the first page is accessed:

Unknown error while serving resource: null/header.css, message : For
input string: "null"

The error seems to go away after accessing the front page the first
time; but I am not sure if it is an error that happens per session.

Does anyone have any ideas about this?  Should I not use that
performance tip if using facelets?

position : beating this dead horse again

Posted by SO...@austin.rr.com.
I am using <t:inputCalendar> and I put a <t:panelGroup
style="position:absolute;"> around it to try to anchor the popup on the
image icon.  This works fairly well, but I noticed that if I scroll down
on the page and then click on the image icon to popup the dialog, the
dialog is offset by the amount that I scrolled.  Anyone know the right
way to anchor the popup to the icon?

Re: Additional: problem (using facelets)

Posted by Mike Kienenberger <mk...@gmail.com>.
http://wiki.apache.org/myfaces/Use_Facelets_with_Tomahawk is the
official location right now.

My guess is that mouseListener takes a method binding rather than a
value binding.  You'll need to create a facelets tag handler that
tells facelets what the method signature of the mouseListener method
is.

You can find some examples of how to do this (it's trivial) at this
location.  Note that you'll want to create a ScheduleComponentHandler
class like the two examples at the bottom of the page in addition to
specifying the handler in your tag entry in taglib.xml file.

http://wiki.java.net/bin/view/Projects/FaceletsTaglibsMyfacesSandbox

When you're done, please update the tomahawk facelets page with the taghandler.

On 4/2/07, SOSELLA@austin.rr.com <SO...@austin.rr.com> wrote:
> Some more info... seems like the mouseListener method is not being
> called.  I am pretty sure that it used to be called prior to me porting
> to facelets.
>
> I downloaded the "tomahawk.taglib.xml" file that I found on the net, but
> I added the "schedule" tag myself and listed
> "org.apache.myfaces.Schedule" as the <component-type>.  Does anyone have
> an official "tomahawk.taglib.xml" file?  Any ideas about what might be
> going on?
>

Additional: problem (using facelets)

Posted by SO...@austin.rr.com.
Some more info... seems like the mouseListener method is not being
called.  I am pretty sure that it used to be called prior to me porting
to facelets.

I downloaded the "tomahawk.taglib.xml" file that I found on the net, but
I added the "schedule" tag myself and listed
"org.apache.myfaces.Schedule" as the <component-type>.  Does anyone have
an official "tomahawk.taglib.xml" file?  Any ideas about what might be
going on?

problem (using facelets)

Posted by SO...@austin.rr.com.
I have been porting my code to facelets.  I am using <t:schedule> and
all seemed to work and render properly, but when now I go to click on
the schedule, the event type is always SCHEDULE_NOTHING_CLICKED.  I did
not change any attributes or attribute values for the <t:schedule> tag.
 Has anyone else seen this issue?  The schedule handler action is being
called, but the event type is always SCHEDULE_NOTHING_CLICKED.

Re: StreamingAddResource Exception with Facelets

Posted by Gerald Müllan <bi...@gmail.com>.
Hi,

i had once exactly the same exception, but didn`t invest more time on this.

Mario as the initial author told me that maybe some filter mappings
don`t do their job correctly. I tried, but had no success. Maybe Mario
knows more on this topic.

cheers,

Gerald

On 3/29/07, SOSELLA@austin.rr.com <SO...@austin.rr.com> wrote:
> I am trying to incorporate the performance improvements using:
>
> <context-param>
>    <param-name>org.apache.myfaces.ADD_RESOURCE_CLASS</param-name>
>
> <param-value>org.apache.myfaces.component.html.util.StreamingAddResource</param-value>
> </context-param>
>
> with <t:document*>  when using facelets.
>
> I am getting an exception when the first page is accessed:
>
> Unknown error while serving resource: null/header.css, message : For
> input string: "null"
>
> The error seems to go away after accessing the front page the first
> time; but I am not sure if it is an error that happens per session.
>
> Does anyone have any ideas about this?  Should I not use that
> performance tip if using facelets?
>


-- 
http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces