Re: MyFaces 1.2.4 and WebLogic 10.3- strict servlet API: cannot call getWriter() after getOutputStream()

2009-03-12 Thread Matthias Wessendorf
Leo,

looks correct

-M

On Fri, Mar 13, 2009 at 1:26 AM, Leonardo Uribe  wrote:
> Hi
>
> There is a possible solution to this issue on MYFACES-1955.
>
> It could be good if anyone can probe it on WebLogic, to make sure if it
> works and close this issue
>
> regards
>
> Leonardo Uribe
>
> On Wed, Mar 11, 2009 at 12:36 PM, jribeiro 
> wrote:
>>
>> I did that long time ago-
>> https://issues.apache.org/jira/browse/MYFACES-1955
>>
>> Matthias Wessendorf-4 wrote:
>> >
>> > Can you file an issue ?
>> >
>> > -Matthias
>> >
>> > On Mon, Mar 9, 2009 at 10:35 PM, jribeiro 
>> > wrote:
>> >>
>> >> No, sorry, we decided to use the Sun reference implementation. I was
>> >> expecting to see a fast reaction to this issue, which in my opinion is
>> >> very
>> >> serious, but nothing has happened since.
>> >>
>> >>
>> >> V. Svetoslavov wrote:
>> >>>
>> >>> Hello!
>> >>>
>> >>> Have you managed to work around this problem? Is there any solution?
>> >>>
>> >>> Thanks.
>> >>>
>> >>> Regards
>> >>> V. Svetoslavov
>> >>>
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> >> http://www.nabble.com/MyFaces-1.2.4-and-WebLogic-10.3--strict-servlet-API%3A-cannot-call-getWriter%28%29-after-getOutputStream%28%29-tp19352315p22422287.html
>> >> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>> >>
>> >>
>> >
>> >
>> >
>> > --
>> > Matthias Wessendorf
>> >
>> > blog: http://matthiaswessendorf.wordpress.com/
>> > sessions: http://www.slideshare.net/mwessendorf
>> > twitter: http://twitter.com/mwessendorf
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/MyFaces-1.2.4-and-WebLogic-10.3--strict-servlet-API%3A-cannot-call-getWriter%28%29-after-getOutputStream%28%29-tp19352315p22460411.html
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>
>



-- 
Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf


Re: Refresh View after HTTPSession Timeout

2009-03-12 Thread Rupak

Hi All,

Even I have got the same problem.
The same issue is there with next link in trinidad table.

When the rows value is less than the no. of rows in the table, it shows next
link.

Any help is highly appreciated.





Ravizzz wrote:
> 
> We have implemented similar way of session timeout in our application
> using filter in web.xml.
> 
> But we are facing one problem with this way of timeout.
> 
> Once Session expires proper logout doesn’t not happen while clicking on
> tabs created in jspx using \ tags
> 
> 
> This is very specifically for the tabs and everything works fine while
> clicking on link or buttons etc
> 
> In server logs we get Session Timed Out message, however at UI nothing
> happens, same teb is displayed and never logs out.
> 
> Additionally we get the below message in logs:-
> 
> [3/4/09 16:19:01:125 IST] 0035 StateManagerI E
> org.apache.myfaces.trinidadinternal.application.StateManagerImpl
> restoreView Could not find saved view state for token -1909e0a
> 
> Any help or pointers would be appreciated.
> 
> 
> chrishane wrote:
>> 
>> I have a generic search screen (standard input form) that displays the 
>> results on the "next" page using a .
>> 
>> If the user hits the refresh button any time prior to the HTTPSession 
>> timeout, then the form is resubmitted and the search generated again
>> (could 
>> display different results if the underlying data has been updated - which 
>> is what we want to happen).
>> 
>> If the user leaves (for a time greater than the HTTPSession timeout) the 
>> results screen, comes back and hits the refresh button after the timeout, 
>> the "Find" screen is displayed again.
>> 
>> I am using Trinidad 1.0 Myfaces 1.1, Jboss 4.0.x, Seam 1.2p1 with client 
>> side state saving.
>> 
>> One of the first errors in the log is:
>> 
>> 2007-06-29 15:35:17,593 ERROR [STDERR] Jun 29, 2007 3:35:17 PM 
>> org.apache.myfaces.trinidadinternal.application.StateManagerImpl 
>> restoreView SEVERE: Could not find saved view state for token 7cad43c0
>> 
>> Which is why I'm assuming it is the HTTPSession timeout.
>> 
>> Is there anything I can do so that the "refresh" will re-run the search
>> and 
>> not show the Find screen?
>> 
>> Thanks,
>> Chris
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Refresh-View-after-HTTPSession-Timeout-tp11366195p22490246.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: MyFaces 1.2.4 and WebLogic 10.3- strict servlet API: cannot call getWriter() after getOutputStream()

2009-03-12 Thread Leonardo Uribe
Hi

There is a possible solution to this issue on MYFACES-1955.

It could be good if anyone can probe it on WebLogic, to make sure if it
works and close this issue

regards

Leonardo Uribe

On Wed, Mar 11, 2009 at 12:36 PM, jribeiro wrote:

>
> I did that long time ago-
> https://issues.apache.org/jira/browse/MYFACES-1955
>
> Matthias Wessendorf-4 wrote:
> >
> > Can you file an issue ?
> >
> > -Matthias
> >
> > On Mon, Mar 9, 2009 at 10:35 PM, jribeiro 
> > wrote:
> >>
> >> No, sorry, we decided to use the Sun reference implementation. I was
> >> expecting to see a fast reaction to this issue, which in my opinion is
> >> very
> >> serious, but nothing has happened since.
> >>
> >>
> >> V. Svetoslavov wrote:
> >>>
> >>> Hello!
> >>>
> >>> Have you managed to work around this problem? Is there any solution?
> >>>
> >>> Thanks.
> >>>
> >>> Regards
> >>> V. Svetoslavov
> >>>
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/MyFaces-1.2.4-and-WebLogic-10.3--strict-servlet-API%3A-cannot-call-getWriter%28%29-after-getOutputStream%28%29-tp19352315p22422287.html
> >> Sent from the MyFaces - Users mailing list archive at Nabble.com.
> >>
> >>
> >
> >
> >
> > --
> > Matthias Wessendorf
> >
> > blog: http://matthiaswessendorf.wordpress.com/
> > sessions: http://www.slideshare.net/mwessendorf
> > twitter: http://twitter.com/mwessendorf
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/MyFaces-1.2.4-and-WebLogic-10.3--strict-servlet-API%3A-cannot-call-getWriter%28%29-after-getOutputStream%28%29-tp19352315p22460411.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>


Memory issue : MyFaces objects in session

2009-03-12 Thread seemamani

We are using MyFaces 1.1.5 in our web application deployed in WAS 6.1.
Recently we faced some memory issues due to session size. We have set the
STATE_SAVING_METHOD as server in web.xml. 

Our WebSphere support team found several of the myfaces classes used in the
session data. They want us to analyze why there is so much data in session
and optimize wherever possible. Here is the list of classes that they sent. 

org.apache.myfaces.application.jsp.JspStateManagerImpl$SerializedViewCollection
org.apache.myfaces.application.jsp.JspStateManagerImpl$SerializedViewKey
org.apache.myfaces.application.TreeStructureManager$TreeStructComponent
org.apache.myfaces.application.ApplicationImpl
javax.faces.component._AttachedStateWrapper
javax.faces.FactoryFinder

How can we reduce these information in the session. Apart from what is
mentioned in the below link, is there anything else we need to do?
http://wiki.apache.org/myfaces/Performance

Thanks,
Seema

-- 
View this message in context: 
http://www.nabble.com/Memory-issue-%3A-MyFaces-objects-in-session-tp22481652p22481652.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: Refresh View after HTTPSession Timeout

2009-03-12 Thread Ravizzz

Simon,

You are right, Except the links to other jsp/html pages all other components
like table and tabs give us this problem. Do you know any sort of solution
for this?


Simon Kitching wrote:
> 
> My guess is that your timeout-handling approach is failing to work with
> any AJAX or frame-based pages, and that these tabs are just one case
> where ajax or frames are being used.
> 
> The problem is that when a browser is refreshing a whole page, a filter
> can return an http-redirect command and the browser will then replace
> the current page with the redirected-to url.
> 
> When the browser is just fetching a frame, only the frame contents will
> get directed, not the whole frameset.
> 
> And when a browser is using XmlHttpRequest to do an AJAX operation,
> there is no obvious way for a filter to tell the browser to give up and
> redirect the current window to a new url. At least not one I know of (I
> presume sending back an http-redirect doesn't work..)
> 
> Regards,
> Simon
> 
> Ravizzz schrieb:
>> We have implemented similar way of session timeout in our application
>> using
>> filter in web.xml.
>> 
>> But we are facing one problem with this way of timeout.
>> 
>> Once Session expires proper logout doesn’t not happen while clicking on
>> tabs
>> created in jspx using \ tags
>> 
>> 
>> This is very specifically for the tabs and everything works fine while
>> clicking on link or buttons etc
>> 
>> In server logs we get Session Timed Out message, however at UI nothing
>> happens, same teb is displayed and never logs out.
>> 
>> Additionally we get the below message in logs:-
>> 
>> [3/4/09 16:19:01:125 IST] 0035 StateManagerI E
>> org.apache.myfaces.trinidadinternal.application.StateManagerImpl
>> restoreView
>> Could not find saved view state for token -1909e0a
>> 
>> Any help or pointers would be appreciated.
>> 
>> 
>> chrishane wrote:
>>> I have a generic search screen (standard input form) that displays the 
>>> results on the "next" page using a .
>>>
>>> If the user hits the refresh button any time prior to the HTTPSession 
>>> timeout, then the form is resubmitted and the search generated again
>>> (could 
>>> display different results if the underlying data has been updated -
>>> which 
>>> is what we want to happen).
>>>
>>> If the user leaves (for a time greater than the HTTPSession timeout) the 
>>> results screen, comes back and hits the refresh button after the
>>> timeout, 
>>> the "Find" screen is displayed again.
>>>
>>> I am using Trinidad 1.0 Myfaces 1.1, Jboss 4.0.x, Seam 1.2p1 with client 
>>> side state saving.
>>>
>>> One of the first errors in the log is:
>>>
>>> 2007-06-29 15:35:17,593 ERROR [STDERR] Jun 29, 2007 3:35:17 PM 
>>> org.apache.myfaces.trinidadinternal.application.StateManagerImpl 
>>> restoreView SEVERE: Could not find saved view state for token 7cad43c0
>>>
>>> Which is why I'm assuming it is the HTTPSession timeout.
>>>
>>> Is there anything I can do so that the "refresh" will re-run the search
>>> and 
>>> not show the Find screen?
>>>
>>> Thanks,
>>> Chris
>>>
>>>
>>>
>> 
> 
> 
> -- 
> -- Emails in "mixed" posting style will be ignored
> -- (http://en.wikipedia.org/wiki/Posting_style)
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Refresh-View-after-HTTPSession-Timeout-tp11366195p22481447.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: Refresh View after HTTPSession Timeout

2009-03-12 Thread Simon Kitching
My guess is that your timeout-handling approach is failing to work with
any AJAX or frame-based pages, and that these tabs are just one case
where ajax or frames are being used.

The problem is that when a browser is refreshing a whole page, a filter
can return an http-redirect command and the browser will then replace
the current page with the redirected-to url.

When the browser is just fetching a frame, only the frame contents will
get directed, not the whole frameset.

And when a browser is using XmlHttpRequest to do an AJAX operation,
there is no obvious way for a filter to tell the browser to give up and
redirect the current window to a new url. At least not one I know of (I
presume sending back an http-redirect doesn't work..)

Regards,
Simon

Ravizzz schrieb:
> We have implemented similar way of session timeout in our application using
> filter in web.xml.
> 
> But we are facing one problem with this way of timeout.
> 
> Once Session expires proper logout doesn’t not happen while clicking on tabs
> created in jspx using \ tags
> 
> 
> This is very specifically for the tabs and everything works fine while
> clicking on link or buttons etc
> 
> In server logs we get Session Timed Out message, however at UI nothing
> happens, same teb is displayed and never logs out.
> 
> Additionally we get the below message in logs:-
> 
> [3/4/09 16:19:01:125 IST] 0035 StateManagerI E
> org.apache.myfaces.trinidadinternal.application.StateManagerImpl restoreView
> Could not find saved view state for token -1909e0a
> 
> Any help or pointers would be appreciated.
> 
> 
> chrishane wrote:
>> I have a generic search screen (standard input form) that displays the 
>> results on the "next" page using a .
>>
>> If the user hits the refresh button any time prior to the HTTPSession 
>> timeout, then the form is resubmitted and the search generated again
>> (could 
>> display different results if the underlying data has been updated - which 
>> is what we want to happen).
>>
>> If the user leaves (for a time greater than the HTTPSession timeout) the 
>> results screen, comes back and hits the refresh button after the timeout, 
>> the "Find" screen is displayed again.
>>
>> I am using Trinidad 1.0 Myfaces 1.1, Jboss 4.0.x, Seam 1.2p1 with client 
>> side state saving.
>>
>> One of the first errors in the log is:
>>
>> 2007-06-29 15:35:17,593 ERROR [STDERR] Jun 29, 2007 3:35:17 PM 
>> org.apache.myfaces.trinidadinternal.application.StateManagerImpl 
>> restoreView SEVERE: Could not find saved view state for token 7cad43c0
>>
>> Which is why I'm assuming it is the HTTPSession timeout.
>>
>> Is there anything I can do so that the "refresh" will re-run the search
>> and 
>> not show the Find screen?
>>
>> Thanks,
>> Chris
>>
>>
>>
> 


-- 
-- Emails in "mixed" posting style will be ignored
-- (http://en.wikipedia.org/wiki/Posting_style)


Re: Refresh View after HTTPSession Timeout

2009-03-12 Thread Ravizzz

We have implemented similar way of session timeout in our application using
filter in web.xml.

But we are facing one problem with this way of timeout.

Once Session expires proper logout doesn’t not happen while clicking on tabs
created in jspx using \ tags


This is very specifically for the tabs and everything works fine while
clicking on link or buttons etc

In server logs we get Session Timed Out message, however at UI nothing
happens, same teb is displayed and never logs out.

Additionally we get the below message in logs:-

[3/4/09 16:19:01:125 IST] 0035 StateManagerI E
org.apache.myfaces.trinidadinternal.application.StateManagerImpl restoreView
Could not find saved view state for token -1909e0a

Any help or pointers would be appreciated.


chrishane wrote:
> 
> I have a generic search screen (standard input form) that displays the 
> results on the "next" page using a .
> 
> If the user hits the refresh button any time prior to the HTTPSession 
> timeout, then the form is resubmitted and the search generated again
> (could 
> display different results if the underlying data has been updated - which 
> is what we want to happen).
> 
> If the user leaves (for a time greater than the HTTPSession timeout) the 
> results screen, comes back and hits the refresh button after the timeout, 
> the "Find" screen is displayed again.
> 
> I am using Trinidad 1.0 Myfaces 1.1, Jboss 4.0.x, Seam 1.2p1 with client 
> side state saving.
> 
> One of the first errors in the log is:
> 
> 2007-06-29 15:35:17,593 ERROR [STDERR] Jun 29, 2007 3:35:17 PM 
> org.apache.myfaces.trinidadinternal.application.StateManagerImpl 
> restoreView SEVERE: Could not find saved view state for token 7cad43c0
> 
> Which is why I'm assuming it is the HTTPSession timeout.
> 
> Is there anything I can do so that the "refresh" will re-run the search
> and 
> not show the Find screen?
> 
> Thanks,
> Chris
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Refresh-View-after-HTTPSession-Timeout-tp11366195p22478775.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



RE: Tomahawk - t:schedule and t:inputCalendar cause js script error

2009-03-12 Thread mun


I found temporary solution, if I declare t:InputCalendar before t:schedule
it is working fine.

Thanks




j haley wrote:
> 
> 
> I never got a resolution to this problem.  I'm surprised that this has not
> been more of an issue.  Especially since the example I provided is only a
> small deviation from the sample project.
> 
>  
> 
>  
> 
>  
>> Date: Wed, 11 Mar 2009 11:46:23 -0700
>> From: munn...@gmail.com
>> To: users@myfaces.apache.org
>> Subject: Re: Tomahawk - t:schedule and t:inputCalendar cause js script
>> error
>> 
>> 
>> Hi,
>> I am facing the exact problem.
>> could you please let me know if it is solved.
>> 
>> Thanks in advance
>> 
>> 
>> j haley wrote:
>> > 
>> > 
>> > Having a problem that I can recreate on the with the tomahawk sample
>> > project. I was getting this with version 1.1.6, and I also get it with
>> > 1.1.8. On myfaces-example-simple-1.1.8/schedule1.jsf, make the
>> following
>> > change.Add renderAsPopup="true" to the t:inputCalendar. The page
>> renders
>> > fine, but when I mouse over the page I get a javascript error. This
>> error
>> > prevents t:schedule’s tooltip from working. The combination that causes
>> > problems is t:inputCalendar or t:inputDate with a renderAsPopup=”true”
>> > attribute along with a t:schedule with a tooltip=”true” attribute. Bug
>> > numbers TOMAHAWK-929 and TOMAHAWK-193 look like they may be related to
>> > this issues. Is there a work around for this?
>> > _
>> > Color coding for safety: Windows Live Hotmail alerts you to suspicious
>> > email.
>> >
>> http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_safety_112008
>>  
>> > 
>> 
>> -- 
>> View this message in context:
>> http://www.nabble.com/Tomahawk---t%3Aschedule-and-t%3AinputCalendar-cause-js-script-error-tp20661957p22461924.html
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>> 
> 
> _
> Windows Live™ Contacts: Organize your contact list. 
> http://windowslive.com/connect/post/marcusatmicrosoft.spaces.live.com-Blog-cns!503D1D86EBB2B53C!2285.entry?ocid=TXT_TAGLM_WL_UGC_Contacts_032009
> 

-- 
View this message in context: 
http://www.nabble.com/Tomahawk---t%3Aschedule-and-t%3AinputCalendar-cause-js-script-error-tp20661957p22477658.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: weeks days and locale settings

2009-03-12 Thread Anton Gavazuk
Hi Andreas,

did you find an solution?

Thanks,
Anton

2008/12/4 Andreas Niemeyer 

> Hi,
>
> I would like to see the displayed week days for german language.
>
> Is there any chance to change this, by setting a locale info or passing an
> array?
>
> I assume it should be possible since the popupDateFormat and
> popupTodayString properties can be modified.
>
>
>
> Regards,
> Andreas
>
>
> monthYearRowClass="yearMonthHeader"
>weekRowClass="weekHeader"
>currentDayCellClass="currentDayCell"
>value="#{bckbean.endDate}"
>lang="de"
>required="false"
>popupWeekString="Wk"
>renderAsPopup="true"
>
>  popupTodayString="#{msgs.CalendarTodayString}"
>
>  popupDateFormat="#{msgs.CalendarDateFormat}"
>/>
>
>