clientId error for decode

2010-04-26 Thread Dave
Hello,
we made a JSF component called my:select. It is used inside t:dataTable as 
the following:
 
t:dataTable...
   t:column
 
   t:dataList ...
   h:inputText rendered=bean.inputRenderable ... /
 
   my:select rendered=bean.selectRenderable ... /
 
   /t:dataList
 
   /t:column
/t:dataTable
 
During encodeEnd() , the client id is  (simplified version) 
 
A:4:B:0:C:D
 
But decode(...),  the client id is  A:1:B:0:C:D
the decode(...) for client id (A:4:B:0:C:D) is never called.
 
the request is made using ajax, the client Id is a request parameter.
 
In the decode(...) method, we check if the request map contains the clientId
 
    if (!requestMap.containsKey(clientId))
   return true;
 
So the decode is ignored.
 
Thanks for help.
Dave
 


  

Re: WARN [HtmlRendererUtils]There should always be a submitted value

2010-03-29 Thread Dave
After you commit the patch, could you send out a message. I need to grab the 
patch. 
 
Thanks,
Dave

--- On Mon, 3/22/10, Jakob Korherr jakob.korh...@gmail.com wrote:


From: Jakob Korherr jakob.korh...@gmail.com
Subject: Re: WARN [HtmlRendererUtils]There should always be a submitted value
To: MyFaces Discussion users@myfaces.apache.org
Date: Monday, March 22, 2010, 2:12 PM


Hi,

Unfortunately I did not find a passage in the spec or in the spec javadoc
that says that every EditableValueHolder has to have a submitted value. So I
don't exactly know why this was added.

I saw that this was added pretty early to MyFaces and so it is possible that
it was just not thought of AJAX here, but frankly I don't know exactly.

I think we should get rid of this warning, because it does not have any
impact if the submitted value is null, because if this is the case, the
value just won't be processed any further. In addition and as a reason of
AJAX it is quite common to not submit all fields of a form in every request.

I'll create a JIRA issue for this one and provide a patch. If no objections,
I'll commit it in the next days!

Thanks for the input!

Regards,
Jakob

2010/3/21 Dave javao...@yahoo.com

 It is normal to submit one value of a form for ajax. how to keep the
 following warning from emitting. Thanks!

 WARN  [HtmlRendererUtils] There should always be a submitted value for an
 input if it is rendered, its form is submitted, and it was not originally
 rendered disabled or read-only.  You cannot submit a form after disabling an
 input element via javascript.  Consider setting read-only to true instead or
 resetting the disabled value back to false prior to form submission.
 Component : {Component-Path : }






  

WARN [HtmlRendererUtils]There should always be a submitted value

2010-03-21 Thread Dave
It is normal to submit one value of a form for ajax. how to keep the following 
warning from emitting. Thanks!
 
WARN  [HtmlRendererUtils] There should always be a submitted value for an input 
if it is rendered, its form is submitted, and it was not originally rendered 
disabled or read-only.  You cannot submit a form after disabling an input 
element via javascript.  Consider setting read-only to true instead or 
resetting the disabled value back to false prior to form submission. Component 
: {Component-Path : }


  

s:inputSuggestAjax error: compont with id[...] not found in view tree

2009-11-07 Thread Dave
Hi,
we tried to use s:inputSuggestAjax, but got error: 
   compont with id[...] not found in view tree.
 
Exception thrown during phase-listener execution: 
org.apache.myfaces.custom.ajax.api.ComponentNotFoundException: Component with 
id 
[bean:j_id_jsp_1183831163_1pc11:0::header:j_id_jsp_30699160_1pc33:3:group:0:value:j_id_jsp_2095925274_33pc34]
 not found in view tree.
 
org.apache.myfaces.custom.ajax.api.AjaxDecodePhaseListener.decodeAjax(AjaxDecodePhaseListener.java:134)
org.apache.myfaces.custom.ajax.api.AjaxDecodePhaseListener.handleAjaxRequest(AjaxDecodePhaseListener.java:118)
org.apache.myfaces.custom.ajax.api.AjaxDecodePhaseListener.beforePhase(AjaxDecodePhaseListener.java:100)
com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:214)
com.sun.faces.lifecycle.Phase.doPhase(Phase.java:96)
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
org.apache.myfaces.custom.ppr.PPRLifecycleWrapper.execute(PPRLifecycleWrapper.java:68)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)
org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)

 
we googled but found nothing about it.
 
Environment: jsf  ri 1.2,  tomahawk12-1.1.9,  sandbox:  sandbox12-1.1.9-snapshot
 
Is it conflicting with ajax4jsf that we are using?
 
Thanks for help.
 
Dave
 


  

JSF mobile support

2009-08-29 Thread Dave
we use JSF ri, tomahawk and ajax4jsf. We hope users can use their mobile 
devices to access our website, which requires mobile web browser to support 
javascript and ajax. For current 3G world and new mobile devices such as cell 
phones, does it support javascript and ajax?
 
Thanks
Dave


  

t:selectManyMenu does not have size attribute

2009-08-27 Thread Dave
 t:selectManyMenu does not have size attribute, and it is set to 1
 
select  multiple=multiple size=1 class=aaa
 
Thanks,
Dave


  

how to detect if a request is a ajax submit or normal submit?

2009-08-25 Thread Dave
We use jsf ri, tomahawk and ajax4jsf.
 
For a request, on server side how to detect whether the request is a ajax 
submit or normal submit? Is there a HTTP header for this?  Thanks
 
Dave


  

trinidad ppr status: how to show in the window center for both IE and Firefox

2009-07-12 Thread Dave
tr:statusIndicator
  f:facet name=busy
    tr:outputText value=Processing... styleClass=ajaxStatus/
  /f:facet
/tr:statusIndicator
 
we like to show the Processing... in the window center for Firefox and IE. 
What the style ajaxStatus should be?
 
It is best to disable user input during processing if possible.
 
Thanks,
Dave


  

Re: [trinidad] ppr: unended quoted string constant

2009-07-12 Thread Dave
Thanks for reply.

IE says the location is Line: 1,=A0 Char: 49, =A0Code: 0,=20
Error: unended quoted string
URL: http://www.mydomain.com/page1.do

We could not find the error from the response.
Is there a way to see the processed DOM after ppr? Is there a way to debug the 
error?

ppr response: (some content omitted)

?xml version=1.0 ?
?Tr-XHR-Response-Type ?
content action=/page1.do 
fragment![CDATA[span id=tr_j_id_jsp_1150609907_1pc4_Postscript
input type=hidden name=javax.faces.ViewState value=!eidd8eympinput 
type=hidden name=source/span]]/fragment
fragment![CDATA[span id=tr_j_id_jsp_496267666_2pc5_Postscriptinput 
type=hidden name=javax.faces.ViewState value=!eidd8eymp
input type=hidden name=source/span]]/fragment 
fragment
![CDATA[span id=tr_j_id_jsp_1461492645_1pc7_Postscriptinput type=hidden 
name=javax.faces.ViewState value=!eidd8eymp/span]]/fragment

fragment![CDATA[span id=tr_j_id_jsp_1167061552_18_Postscriptinput 
type=hidden name=javax.faces.ViewState value=!eidd8eympinput 
type=hidden name=source/span]]/fragment
fragment![CDATA[span id=tr_j_id_jsp_1167061552_23_Postscriptinput 
type=hidden name=javax.faces.ViewState value=!eidd8eympinput 
type=hidden name=source/span]]/fragment
fragment![CDATA[div id=region0..ppr render region... /div]]/fragment

--- On Thu, 7/9/09, Matthias Wessendorf mat...@apache.org wrote:


From: Matthias Wessendorf mat...@apache.org
Subject: Re: [trinidad] ppr: unended quoted string constant
To: MyFaces Discussion users@myfaces.apache.org
Date: Thursday, July 9, 2009, 1:31 AM


do you have a little bit more information ?

On Thu, Jul 9, 2009 at 2:54 AM, Davejavao...@yahoo.com wrote:
 Trinidad 1.2.11.  our jsf app works well for the normal form submit. But for
 ppr, we got a page error from IE browser status bar:

 unended quoted string constant

 Proxy  trace is used to debug ppr response, but we could not find the
 unended string constant.

 Thanks for help.
 Dave





-- 
Matthias Wessendorf

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



  

[trinidad] ppr: unended quoted string constant

2009-07-08 Thread Dave
Trinidad 1.2.11.  our jsf app works well for the normal form submit. But for 
ppr, we got a page error from IE browser status bar: 
 
unended quoted string constant
 
Proxy  trace is used to debug ppr response, but we could not find the unended 
string constant.
 
Thanks for help.
Dave
 


  

how to get GPS data from requests from gps-enabled devices

2009-07-04 Thread Dave
Hello, 
 
For our jsf application, is there a way to get GPS data from requests from 
gps-enabled devices?
 
Thanks,
Dave 


  

[trinidad] wap: response more than 250K

2009-07-01 Thread Dave
Hello,
We use trinidad 1.2.11 for WAP.  From Nokia S60 5th Edition emulator, the 
response size is more than 250K for a very simple page. I expected it to be 
less than 30K.
 
Why is the response so large? it is not suitable for WAP.  It has javascript 
and style sheets. They should be tiny  for WAP.  How to make it smaller?
 
Thanks,
Dave
 


  

trinidad mobile: how to tell if user agent supports javascript?

2009-06-28 Thread Dave
For S60 Nokia Emulator: the agent capabilityMap:
 
{-adfinternal-advancedButtons=true, -adfinternal-editing=true, 
-adfinternal-readonlyFormElements=true, -adfinternal-partialRendering=false, 
-adfinternal-fieldset=false, -adfinternal-gifImage=true, textPresentation=true, 
-adfinternal-advancedForms=true, -adfinternal-nowrap=true, 
-adfinternal-altRendersTooltipOnImage=false, -adfinternal-imageStretch=true, 
-adfinternal-id=true, accessKeys=true, -adfinternal-valign=true, 
-adfinternal-cssSelectors=multiple, -adfinternal-jpegImage=true, 
-adfinternal-multipleWindows=true, -adfinternal-styleAttributes=external, 
tables=advanced, -adfinternal-disabledFormElements=true, 
-adfinternal-navigation=true, iframes=true, 
-adfinternal-nameIdentification=true, dom=level2, -adfinternal-target=true, 
frames=true, -adfinternal-supportsDisabledOptions=false, 
-adfinternal-onclickOnImgInput=true, -adfinternal-intrinsicEvents=true, 
-adfinternal-scriptingSpeed=slow, -adfinternal-bmpImage=true}
 
How to tell if it supports javascript? I could not find a key for it?
 
Thanks,
dave


  

[trinidad]Nokia S60 Emulator: Agent[desktop,nokia_s60 525,nokia_s60]

2009-06-23 Thread Dave
Hello,
I downloaded Nokia S60 SDK 5th (window xp), and uses its Emulator to test jsf 
application using trinidad. From debug, the agent returned from trinidad is 
 
Agent[desktop,nokia_s60 525,nokia_s60]
 
Why it is desktop? should it be Phone or PDA?
 
Thanks!
Dave


  

[trinidad] does not support browser back button

2009-06-20 Thread Dave
When we use jsf ri and tomahawk, our jsf app works well for browser back 
button. But after we use Trinidad, browser back button does not work. Consider 
the following senario:
 
1. show a table of employees (backing bean data is a list of employees)
2. click an employee A and show the employee,(backing bean data is now changed 
to the employee)
3. click browser back button
4. click an employee B.  Employee B will not be shown because the backing data 
has been changed to employee A in stop 2.
 
I looked the generated HTML viewState values in the steps above. They are  the 
same. That means that only the same view(stored view tree in server side) is 
used. For jsf/tomahawk, I believe different view  trees are used for the 
senario above and thus back button works.
 
Is there a config parameter for trinidad to support back button?
Back button is often used by users, it is nice if we can do that with Trinidad.
 
Thanks,
Dave


  

Re: trinidad: how to disable skinning

2009-06-17 Thread Dave
Hi Andrew
Thanks for help.
 
The problem is caused by the following line:
 
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN 
http://www.w3.org/TR/html4/loose.dtd;

When we use JSF ri and tomahawk, the response HTML does not have the code 
above. 
If the !DOCTYPE ... is removed from html, the following style will work as 
expected.
 
.displayBlock {
 display:inline;
}
 
Is there a way to tell Trinidad not to generate the !DOCTYPE ...?
Thanks,
Dave



--- On Sun, 6/14/09, Andrew Robinson andrew.rw.robin...@gmail.com wrote:


From: Andrew Robinson andrew.rw.robin...@gmail.com
Subject: Re: trinidad: how to disable skinning
To: MyFaces Discussion users@myfaces.apache.org
Date: Sunday, June 14, 2009, 7:23 PM


After or before doesn't matter for CSS, just weights. You can just
increase your selectivity. Possible examples:

div.displayBlock { display: inline; }
body .displayBlock { display: inline; }

Trinidad doesn't affect your CSS loading at all, it just has some
styles it ships. You can use the firebug extension to see which styles
are getting applied and which are getting overridden. Turn off
Trinidad CSS content compression to get human-readable style classes
so you can see which Trinidad selectors may be getting higher priority
than yours.

-Andrew

On Thu, Jun 11, 2009 at 8:21 PM, Davejavao...@yahoo.com wrote:
 Our project  is starting to use trinidad, but  stylesheets(css) do not work
 any more. For example,

 t:div styleClass=displayBlock

 /t:div

 .displayBlock {
 display:inline;
 }

 The style above is not working.  From browser html source, our style is put
 after trinidad skining css file.

 Is there is a way to disable trinidad skinning?

 Thanks for help.
 Dave






  

trinidad mobile: pop up a menu from pressing device keys

2009-06-15 Thread Dave
Hello, our page is too large for a mobile device screen. The first page is all 
menu items, then when users scroll down to next page, users can see content. If 
menu items can be popup from pressing a device key, then users can see content 
in the first page.  WML can do that. Is it possible for tinidad(XHTML) to do 
that? It would be much nicer for users.
 
Thanks,
Dave


  

trinidad: can name attribute be removed for mobile?

2009-06-15 Thread Dave
To reduce http response size, can all components' name attributes be removed 
since they are the same as id attributes. In our app, since many levels of 
subview and table/iterators, id/name can be very long, over 100 characters.
 
Removing name attributes can reduce response size by 20%.
 
Thanks
Dave


  

jsf subview: required?

2009-06-15 Thread Dave
 f:subview id=page1 
  jsp:include page=page1.jsp /
 /f:subview 
 
 
Is subview required?  or  simply use
 
jsp:include page=page1.jsp /
 
Subview is a naming container. Can I just use jsp:include page=page1.jsp / 
to reduce id length if there is no id conflict? any other difference?
 
Thanks
Dave


  

jsf component id/name are the same, remove name attribute?

2009-06-14 Thread Dave
For jsf, the generated id/name for a component are the same. for example,
 
div id=panelLayout:menuNavigation:table1:0:nodeLabel 
name=panelLayout:menuNavigation:table1:0:nodeLabel
 
...
/div
 
it is too long, especially for mobile devices. Is it ok to remove name 
attribute? it would reduce the network traffic greatly.
 
Thanks,
Dave
 


  

trinidad ppr, fresh page head possbile?

2009-06-14 Thread Dave
Hello, it is possible to let html head be a ppr partialTrigger target? for 
example, to show a google map in ppr call, we need to include gmap js library 
in html head? 
 
some cases we need  include a css stylesheet reference in html head for a ppr 
call.
 
Thanks,
Dave
 
 


  

Re: trinidad ppr issue: ajax submit does not work in partially refreshed region

2009-06-11 Thread Dave
The code is called during Invoke Application phase. The targets are 
region1.  If the region1 is refreshed by non-ajax call, then subsequence ppr 
calls inside region1 will work. If the region1 is refresh by a ppr call, 
then subsequence ppr calls inside region1 will not work. I am wondering if the 
region1 is refershed by ppr call, some resources might be missing. 
 
For ppr calls, will resources such as javascript/css(normally in head) will be 
retrieved successfully from server? 
 
Thanks,
Dave
 
tr:document
 
...
 
t:div id=region1
 
/t:div
 
t:div id=region2
 
/t:div
 
/tr:document

--- On Thu, 6/11/09, Andrew Robinson andrew.rw.robin...@gmail.com wrote:


From: Andrew Robinson andrew.rw.robin...@gmail.com
Subject: Re: trinidad ppr issue: ajax submit does not work in partially 
refreshed region
To: MyFaces Discussion users@myfaces.apache.org
Date: Thursday, June 11, 2009, 1:50 PM


What are targets, and when is this code called? Are you ensuring
that the targets are added while their client ID's are correct
(stamping can change them for example) and before any of these
components are rendered?

-Andrew

On Wed, Jun 10, 2009 at 7:32 PM, Davejavao...@yahoo.com wrote:
 partialTargets are added programmatically for ppr:

 RequestContext rc = RequestContext.getCurrentInstance();
 UIViewRoot root = FacesContext.getCurrentInstance().getViewRoot();
 rc.addPartialTargets(root, targets);

 In our case, no page navigation. the same page is used for ajax call.

 I am trying to figure out how the initial ppr affects the subsequent ppr
 calls.
 Thanks for further help.
 Dave

 --- On Wed, 6/10/09, Andrew Robinson andrew.rw.robin...@gmail.com wrote:

 From: Andrew Robinson andrew.rw.robin...@gmail.com
 Subject: Re: trinidad ppr issue: ajax submit does not work in partially
 refreshed region
 To: MyFaces Discussion users@myfaces.apache.org
 Date: Wednesday, June 10, 2009, 11:34 AM

 Where are your partial triggers? If no components trigger off of the
 command link, then nothing will be updated on the client. Also, with
 action and not actionListener make sure you never match a navigation
 rule. Navigation will invalidate the PPR.

 -Andrew

 On Wed, Jun 10, 2009 at 10:21 AM, Davejavao...@yahoo.com wrote:
 t:div id=region1

 tr:commandLink text=updateRegion2 action=#{bean.updateRegion2}
 partialSubmit=true ... /

 /t:div

 t:div id=region2
  

 /t:div

 After clicking the updateRegion2 commandLink using ajax submit, the
 region2
 content is refreshed successfully.  But the tr:commandLink
 partialSubmit=true ... ajax submit in refreshed region2 content did not
 work. When clicking the commandLink, nothing happened. It seems that ajax
 request was not sent to server.

 If I changed the the updateRegion2 commandLink as normal submit(not ajax),
 the tr:commandLink partialSubmit=true ... ajax submit in refreshed
 region2 content worked.

 I cound not figure out what is the cause. Thanks for any ideas and help.

 Dave







  

trinidad: how to disable skinning

2009-06-11 Thread Dave
Our project  is starting to use trinidad, but  stylesheets(css) do not work any 
more. For example,
 
t:div styleClass=displayBlock
 
/t:div
 
.displayBlock {
display:inline;
}
 
The style above is not working.  From browser html source, our style is put 
after trinidad skining css file.
 
Is there is a way to disable trinidad skinning?
 
Thanks for help.
Dave
 
 


  

trinidad ppr issue: ajax submit does not work in partially refreshed region

2009-06-10 Thread Dave
t:div id=region1
 
tr:commandLink text=updateRegion2 action=#{bean.updateRegion2} 
partialSubmit=true ... /
 
/t:div
 
t:div id=region2
 
 
/t:div
 
After clicking the updateRegion2 commandLink using ajax submit, the region2 
content is refreshed successfully.  But the tr:commandLink 
partialSubmit=true ... ajax submit in refreshed region2 content did not 
work. When clicking the commandLink, nothing happened. It seems that ajax 
request was not sent to server.
 
If I changed the the updateRegion2 commandLink as normal submit(not ajax),  the 
tr:commandLink partialSubmit=true ... ajax submit in refreshed region2 
content worked.
 
I cound not figure out what is the cause. Thanks for any ideas and help.
 
Dave
 


  

trinidad: how to add javascript/style/body onload programmatically

2009-06-10 Thread Dave
For trinidad, 1. how to add javascript/style inside html head programmatically? 
For example,link rel=stylesheet href=/my.css type=text/css /script 
type=text/javascript src=/my.js 2. how to add body onload script? Thanks 
for help.Dave


  

Re: trinidad ppr issue: ajax submit does not work in partially refreshed region

2009-06-10 Thread Dave
partialTargets are added programmatically for ppr:
 
RequestContext rc = RequestContext.getCurrentInstance();
UIViewRoot root = FacesContext.getCurrentInstance().getViewRoot();
rc.addPartialTargets(root, targets);
 
In our case, no page navigation. the same page is used for ajax call.
 
I am trying to figure out how the initial ppr affects the subsequent ppr calls.
Thanks for further help.
Dave


--- On Wed, 6/10/09, Andrew Robinson andrew.rw.robin...@gmail.com wrote:


From: Andrew Robinson andrew.rw.robin...@gmail.com
Subject: Re: trinidad ppr issue: ajax submit does not work in partially 
refreshed region
To: MyFaces Discussion users@myfaces.apache.org
Date: Wednesday, June 10, 2009, 11:34 AM


Where are your partial triggers? If no components trigger off of the
command link, then nothing will be updated on the client. Also, with
action and not actionListener make sure you never match a navigation
rule. Navigation will invalidate the PPR.

-Andrew

On Wed, Jun 10, 2009 at 10:21 AM, Davejavao...@yahoo.com wrote:
 t:div id=region1

 tr:commandLink text=updateRegion2 action=#{bean.updateRegion2}
 partialSubmit=true ... /

 /t:div

 t:div id=region2
  

 /t:div

 After clicking the updateRegion2 commandLink using ajax submit, the region2
 content is refreshed successfully.  But the tr:commandLink
 partialSubmit=true ... ajax submit in refreshed region2 content did not
 work. When clicking the commandLink, nothing happened. It seems that ajax
 request was not sent to server.

 If I changed the the updateRegion2 commandLink as normal submit(not ajax),
 the tr:commandLink partialSubmit=true ... ajax submit in refreshed
 region2 content worked.

 I cound not figure out what is the cause. Thanks for any ideas and help.

 Dave





  

Re: trinidad: how to add javascript/style/body onload programmatically

2009-06-10 Thread Dave
what i meant is how to use Trinidad java API to do that. Tomahawk's AddResource 
allows users to add css style and javascript programatically. I am wondering if 
Trinidad has the similar functionalities.
 
Trinidad has ExtendedRenderKitService:
 
  FacesContext facesContext = FacesContext.getCurrentInstance();
    ExtendedRenderKitService service = (ExtendedRenderKitService)
  Service.getRenderKitService(facesContext, 
ExtendedRenderKitService.class);
    service.addScript(facesContext, scriptcode);
 
but it add inline javascript code only. It can not do the things I mentioned in 
the previous email.
 
Thanks.
dave

--- On Wed, 6/10/09, alvaro tovar alvaro.to...@gmail.com wrote:


From: alvaro tovar alvaro.to...@gmail.com
Subject: Re: trinidad: how to add javascript/style/body onload programmatically
To: MyFaces Discussion users@myfaces.apache.org
Date: Wednesday, June 10, 2009, 10:11 AM


for the 1 you can use ${} 
for the 2
body onload=callJS()


2009/6/10 Dave javao...@yahoo.com





For trinidad, 1. how to add javascript/style inside html head programmatically? 
For example,link rel=stylesheet href=/my.css type=text/css /script 
type=text/javascript src=/my.js 2. how to add body onload script? 
Thanks for
 help.Dave




  

trinidad ppr: how to add stylesheet ?

2009-06-10 Thread Dave
For a ppr response, we need to add style sheet programmatically:link 
rel=stylesheet href=/theme/editor.css type=text/css /How to achieve that 
in Trinidad ppr call?Thanks,Dave


  

for h:form, why tomahawk formRender is used?

2009-05-21 Thread Dave
HELLO,
I use Sun JSF ri 1.2 and tomahawk 1.1.8.
 
I used h:form in the page, I expect Sun ri formRender will be used, but from 
debug I noticed that actually tomahawk formRender is used. Why? Is this 
configurable?
 
I need to fix a bug in Sun ri's UIForm, but depends on tomahawk's code because 
the render's decode() method set form's submitted value.
 
Thanks!
Dave
 
 


  

can t:subform work with ajax4jsf?

2009-05-19 Thread Dave
Hello,
 
h:form
 
t:subForm
   
   a4j:commandLink ..
/t:subForm
 
t:subForm
   
   a4j:commandButton ..
/t:subForm
 
/h:form
 
can t:subform work with ajax4jsf?  Anyone is using it successfully?
 
Thanks
Dave
 


  

UIForm does not work inside DataList

2009-05-18 Thread Dave
h:form does not work inside t:dataList
 h:dataList value=#{bean.beanList} var=bean

  h:form
  
  /h:form

/h:dataList

For more than one form in the data list, the UIForm's submitted value is 
overriden by the last one. For example, if I click a button in the first form, 
in processDecode(...), the submitted value is set to true by the first form, 
then is set to false by the 2nd form. As a result, there will be no Model 
update to the UIForm component.
 
https://javaserverfaces.dev.java.net/issues/show_bug.cgi?id=1120
 
I am using Jsf Ri 1.2.12 and Tomahark1.2.


  

RE: trinidad for mobile, working?

2009-05-15 Thread Dave
The demos are very helpful. Can we see the source code? or download?
 
I have some questions:
 
For mobile, Should I use ORACLE ADF or trinidad?   Are they the same ?
The artical uses JDeveloper. Can we use eclipse(that we use) to achieve the 
same goal?
 
Which phone emulators are the best for mobile WAP testing? where to download?
 
Thanks
Dave
 


--- On Thu, 5/14/09, tadashi enomori tadashi.enom...@oracle.com wrote:


From: tadashi enomori tadashi.enom...@oracle.com
Subject: RE: trinidad for mobile, working?
To: MyFaces Discussion users@myfaces.apache.org
Date: Thursday, May 14, 2009, 10:59 AM


Some more demos:

http://stshld.oracle.com:/demo/faces/main.jspx

Customer references (very old and need to be updated) can be found at:

http://www.oracle.com/technology/products/jdev/customers/index.html

Thanks,
Tadashi



-Original Message-
From: mwessend...@gmail.com [mailto:mwessend...@gmail.com]on Behalf Of
Matthias Wessendorf
Sent: Thursday, May 14, 2009 5:10 AM
To: MyFaces Discussion
Subject: Re: trinidad for mobile, working?


this is trinidad as well:

http://www.oracle.com/technology/pub/articles/huang-iphone.html

-Matthias

2009/5/14 Walter Mourão walter.mou...@gmail.com:
 I'm quite successful using Trinidad in a mobile application, not wap. The
 application is accessed from a device (data collector) using Internet
 Explorer Mobile 6.

 Walter Mourão
 http://waltermourao.com.br
 http://arcadian.com.br
 http://oriens.com.br



 On Wed, May 13, 2009 at 10:49 PM, Dave javao...@yahoo.com wrote:

 we are thinking about using Trinidad to extend our app for wap. Has anyone
 successfully developed wap application using trinidad?  or should I use jsp
 at this time? please show some commercial wap sites using trinidad. Thanks
 for sharing.

 Dave





-- 
Matthias Wessendorf

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




  

Re: [RichFaces]-Poll server, alert server side message, possible?

2009-05-13 Thread Dave
Tomahawk has the add javascript function via AddResource. I do not know where 
to put the javascript code.  body onload, page header, or somewhere else?  Poll 
is ajax call.
 
The Java code (backing bean):
public String send() 
{ 
FacesContext facesContext = FacesContext.getCurrentInstance(); 
ExtendedRenderKitService service = (ExtendedRenderKitService) 
Service.getRenderKitService(facesContext, ExtendedRenderKitService.class); 
service.addScript(facesContext, 
alert('Script added by ExtendedRenderKitService')); 
//do real logic 
return (success); 
} 

The JSPX file:
af:commandButton id=button1 text=press me 
action=#{helloWorldBacking.send}/ 
 
I am trying to understand where javascript code is put on the page and how it 
get executed. 
Thanks
Dave

--- On Tue, 5/12/09, Richard Yee richard.k@gmail.com wrote:


From: Richard Yee richard.k@gmail.com
Subject: Re: [RichFaces]-Poll server, alert server side message, possible?
To: MyFaces Discussion users@myfaces.apache.org
Date: Tuesday, May 12, 2009, 7:57 PM



It is built-in to the component. 


You don't need to write any javascript.


Richard

Sent from my iPhone

On May 12, 2009, at 6:05 PM, Dave javao...@yahoo.com wrote:









Thanks for replies.
 
The poll is ajax call. Where is the javascript code put in the page? how will 
it be called? on page load? if on page load, it will not be called since it is 
ajax request.
 
thanks,
Dave

--- On Tue, 5/12/09, Cagatay Civici cagatay.civ...@gmail.com wrote:


From: Cagatay Civici cagatay.civ...@gmail.com
Subject: Re: [RichFaces]-Poll server, alert server side message, possible?
To: MyFaces Discussion users@myfaces.apache.org
Date: Tuesday, May 12, 2009, 1:25 AM


Well this is MyFaces mailing list, not richfaces so we can come up with myfaces 
related solutions.

Go for Matthias's suggestion is optimal for this requirement since server sends 
the requests not client.


On Tue, May 12, 2009 at 8:13 AM, Matthias Wessendorf mat...@apache.org wrote:

use Trinidad.

There is a poll component as well, and a much nicer way to send JavaScript calls
to the client (from the server):

http://www.jroller.com/mwessendorf/entry/using_extendedrenderkitservice

-Matthias




On Tue, May 12, 2009 at 9:08 AM, Dave javao...@yahoo.com wrote:
 I like to use RichFaces Poll server side new messages. If there are new
 messages, then pop up alert window, saying 3 new messages.  From the Poll
 tag, can oncomplete javascript  be bound to server side bean property? If
 so, the alert message can be dynamically generated in server side.

 Thanks
 Dave




--
Matthias Wessendorf

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





  

trinidad for mobile, working?

2009-05-13 Thread Dave
we are thinking about using Trinidad to extend our app for wap. Has anyone 
successfully developed wap application using trinidad?  or should I use jsp at 
this time? please show some commercial wap sites using trinidad. Thanks for 
sharing.
 
Dave


  

[RichFaces]-Poll server, alert server side message, possible?

2009-05-12 Thread Dave
I like to use RichFaces Poll server side new messages. If there are new 
messages, then pop up alert window, saying 3 new messages.  From the Poll 
tag, can oncomplete javascript  be bound to server side bean property? If so, 
the alert message can be dynamically generated in server side.
 
Thanks
Dave


  

Re: [RichFaces]-Poll server, alert server side message, possible?

2009-05-12 Thread Dave
Thanks for replies.
 
The poll is ajax call. Where is the javascript code put in the page? how will 
it be called? on page load? if on page load, it will not be called since it is 
ajax request.
 
thanks,
Dave

--- On Tue, 5/12/09, Cagatay Civici cagatay.civ...@gmail.com wrote:


From: Cagatay Civici cagatay.civ...@gmail.com
Subject: Re: [RichFaces]-Poll server, alert server side message, possible?
To: MyFaces Discussion users@myfaces.apache.org
Date: Tuesday, May 12, 2009, 1:25 AM


Well this is MyFaces mailing list, not richfaces so we can come up with myfaces 
related solutions.

Go for Matthias's suggestion is optimal for this requirement since server sends 
the requests not client.


On Tue, May 12, 2009 at 8:13 AM, Matthias Wessendorf mat...@apache.org wrote:

use Trinidad.

There is a poll component as well, and a much nicer way to send JavaScript calls
to the client (from the server):

http://www.jroller.com/mwessendorf/entry/using_extendedrenderkitservice

-Matthias




On Tue, May 12, 2009 at 9:08 AM, Dave javao...@yahoo.com wrote:
 I like to use RichFaces Poll server side new messages. If there are new
 messages, then pop up alert window, saying 3 new messages.  From the Poll
 tag, can oncomplete javascript  be bound to server side bean property? If
 so, the alert message can be dynamically generated in server side.

 Thanks
 Dave




--
Matthias Wessendorf

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




  

Re: Trinidad: did not open a new dialog window with useWindow=true

2009-05-07 Thread Dave
yes, the action method returns: dialog:editValue.

--- On Wed, 5/6/09, Richard Yee richard.k@gmail.com wrote:


From: Richard Yee richard.k@gmail.com
Subject: Re: Trinidad: did not open a new dialog window with useWindow=true
To: MyFaces Discussion users@myfaces.apache.org
Date: Wednesday, May 6, 2009, 10:48 AM


What view id is being returned by the bean.go() method? Is the view id
prefixed with dialog:?

-Richard

On Wed, May 6, 2009 at 8:15 AM, Glauco P. Gomes
glaucopgo...@yahoo.com.br wrote:
 Set org.apache.myfaces.trinidad.ENABLE_LIGHTWEIGHT_DIALOGS to false and you
 get your expected results.

 Glauco P. Gomes

 Dave escreveu:

 org.apache.myfaces.trinidad.ENABLE_LIGHTWEIGHT_DIALOGS was set to true, I
 expected Trinidad to open a dialog on the top of the current page (keep the
 current page), but it was a normal page navigation. (useWindow=true)

 --- On Wed, 5/6/09, Glauco P. Gomes glaucopgo...@yahoo.com.br wrote:

 From: Glauco P. Gomes glaucopgo...@yahoo.com.br
 Subject: Re: Trinidad: did not open a new dialog window with
 useWindow=true
 To: MyFaces Discussion users@myfaces.apache.org
 Date: Wednesday, May 6, 2009, 4:11 AM

 The org.apache.myfaces.trinidad.ENABLE_LIGHTWEIGHT_DIALOGS param tells to
 Trinidad to use IFrame, setting it to false tells to Trinidad to open a new
 window.

 Glauco P. Gomes

 Dave escreveu:

 For trinidad 1.2.11,
 IFrame or Window, which is used for dialog framework?

 tr:commandLink id=commandLink
   text=Go
   action=#{bean.go}
   partialSubmit=false useWindow=true
       returnListener=#{bean.handleReturn} /

 The action return: dialog:editValue.
 It did not popup a new window for dialog, but show the dialog in the same
 window.

 in web.xml

     context-param
     param-nameorg.apache.myfaces.trinidad.CACHE_VIEW_ROOT/param-name
     param-valuefalse/param-value
     /context-param
     context-param

 param-nameorg.apache.myfaces.trinidad.ENABLE_LIGHTWEIGHT_DIALOGS/param-name
     param-valuetrue/param-value
     /context-param
     context-param

 param-nameorg.apache.myfaces.trinidadinternal.renderkit.USE_DIALOG_POP/param-name
     param-valuetrue/param-value
     /context-param


 Environment: jsf ri 1.2.12, tomahawk 1.1.8, richfaces 3.3.0, trinidad
 1.2.11, jboss 5.0.1GA, window XP, IE7.0.   Popup block is disabled in IE.

 How to pop up a window for dialog?  Thanks for help
 Dave








  

Trinidad -- TrPage not defined

2009-05-06 Thread Dave
We have jsf pages that uses tomahawk(1.1.8) and trinidad(1.2.11) with JSF ri 
1.2.12.
For trinidad, we use tr:commankLink only for dialog framework.  Jboss 
version: 5.0.1GA.
 
From client source viewer:
 
TrPage is used before loading /adf/jsLibs/Common1_2_11.js that defines TrPage.
 
script 
type=text/javascriptTrPage.getInstance()._addResetFields('j_id_jsp_500896631_1pc4',[source]);/script
 
.
 
script type=text/javascript src=/adf/jsLibs/Common1_2_11.js
 
 
Please help, how to solve/workaround this problem?
 
Thanks
Dave


  

Trinidad: did not open a new dialog window with useWindow=true

2009-05-06 Thread Dave
For trinidad 1.2.11,
IFrame or Window, which is used for dialog framework?
 
tr:commandLink id=commandLink 
  text=Go  
  action=#{bean.go} 
  partialSubmit=false useWindow=true
      returnListener=#{bean.handleReturn} / 
 
The action return: dialog:editValue.
It did not popup a new window for dialog, but show the dialog in the same 
window.
 
in web.xml
 
    context-param 
    param-nameorg.apache.myfaces.trinidad.CACHE_VIEW_ROOT/param-name 
    param-valuefalse/param-value 
    /context-param
    context-param 
    
param-nameorg.apache.myfaces.trinidad.ENABLE_LIGHTWEIGHT_DIALOGS/param-name 
    param-valuetrue/param-value 
    /context-param  
    context-param 
    
param-nameorg.apache.myfaces.trinidadinternal.renderkit.USE_DIALOG_POP/param-name
 
    param-valuetrue/param-value 
    /context-param 
 
 
Environment: jsf ri 1.2.12, tomahawk 1.1.8, richfaces 3.3.0, trinidad 1.2.11, 
jboss 5.0.1GA, window XP, IE7.0.   Popup block is disabled in IE.
 
How to pop up a window for dialog?  Thanks for help
Dave
 


  

Re: Trinidad: did not open a new dialog window with useWindow=true

2009-05-06 Thread Dave
org.apache.myfaces.trinidad.ENABLE_LIGHTWEIGHT_DIALOGS was set to true, I 
expected Trinidad to open a dialog on the top of the current page (keep the 
current page), but it was a normal page navigation. (useWindow=true)

--- On Wed, 5/6/09, Glauco P. Gomes glaucopgo...@yahoo.com.br wrote:


From: Glauco P. Gomes glaucopgo...@yahoo.com.br
Subject: Re: Trinidad: did not open a new dialog window with useWindow=true
To: MyFaces Discussion users@myfaces.apache.org
Date: Wednesday, May 6, 2009, 4:11 AM


The org.apache.myfaces.trinidad.ENABLE_LIGHTWEIGHT_DIALOGS param tells to 
Trinidad to use IFrame, setting it to false tells to Trinidad to open a new 
window.

Glauco P. Gomes

Dave escreveu: 





For trinidad 1.2.11,
IFrame or Window, which is used for dialog framework?
 
tr:commandLink id=commandLink 
  text=Go  
  action=#{bean.go} 
  partialSubmit=false useWindow=true
      returnListener=#{bean.handleReturn} / 
 
The action return: dialog:editValue.
It did not popup a new window for dialog, but show the dialog in the same 
window.
 
in web.xml
 
    context-param 
    param-nameorg.apache.myfaces.trinidad.CACHE_VIEW_ROOT/param-name 
    param-valuefalse/param-value 
    /context-param
    context-param 
    
param-nameorg.apache.myfaces.trinidad.ENABLE_LIGHTWEIGHT_DIALOGS/param-name 
    param-valuetrue/param-value 
    /context-param  
    context-param 
    
param-nameorg.apache.myfaces.trinidadinternal.renderkit.USE_DIALOG_POP/param-name
 
    param-valuetrue/param-value 
    /context-param 
 
 
Environment: jsf ri 1.2.12, tomahawk 1.1.8, richfaces 3.3.0, trinidad 1.2.11, 
jboss 5.0.1GA, window XP, IE7.0.   Popup block is disabled in IE.
 
How to pop up a window for dialog?  Thanks for help
Dave
 




  

new to trinidad - tr:commandLink did not show

2009-05-05 Thread Dave
we are using JBoss5.0.1, jsf ri 1.2, tomahawk 1.1.8 and richfaces 3.3.0.  we 
downloaded trinidad 1.2.11 and tried to integrate trinidad into current 
project. but for the following simple page, nothing showed up. 
tr:commandLink/tr:commandButton did not show up.  Am I missing anything?
 
%@ page contentType=text/html; charset=UTF-8%
%@ taglib uri=http://java.sun.com/jsf/html; prefix=h%
%@ taglib uri=http://java.sun.com/jsf/core; prefix=f%
%@ taglib uri=http://myfaces.apache.org/tomahawk; prefix=t%
%@ taglib uri=http://richfaces.org/a4j; prefix=a4j%
%@ taglib uri=http://myfaces.apache.org/trinidad; prefix=tr%
f:view 
t:htmlTag value=html
t:htmlTag value=head
/t:htmlTag
t:htmlTag value=body
   
 
h:form
 tr:commandLink text=Go action=#{testBean.clickLink}/
     tr:commandButton text=Submit action=#{testBean.clickLink}/
/h:form
    
tr:form
 tr:commandLink text=Go2 action=#{testBean.clickLink}/
     tr:commandButton text=Submit2 action=#{testBean.clickLink}/
/tr:form    
   
/t:htmlTag
/t:htmlTag
/f:view

The way I set up trinidad:
 
copy trinidad api and impl to JBOSS jsf-libs
change deployers/jbossweb.deployer/web.xml, add trinidad impl jar as I did for 
tomahawk and other jsf libs.
that is it. no filter to setup.
 
Thanks for help.
Dave


  

Property Editor not registered with the PropertyEditorManager

2009-05-02 Thread Dave
we have a JSF appliction working well on Jboss 4.0.5GA using myfaces 1.1.  Now 
we are moving to jboss 5.0.1GA that uses jsf ri 1.2. After fixing some issues, 
finally we got the following error for our custom component at runtime:
 
x:hello value=#{bean.name}  /
 
org.apache.jasper.JasperException: Unable to convert string #{bean.name} to 
class javax.el.ValueExpression for attribute value: Property Editor not 
registered with the PropertyEditorManager.
 
 org.apache.jasper.runtime.JspRuntimeLibrary.getValueFromPropertyEditorManager(JspRuntimeLibrary.java:887)
 
It works for myfaces 1.1 version.  What is the possible reason? Thanks for any 
information. 
 
Dave


  

MyFaces for WAP?

2009-04-30 Thread Dave
Hi,
Is there a plan to develop and release myfaces core/tomahark for WAP?  I 
noticed that Trinidad has supported WAP. Thanks for info.
Dave


  

how to load a jsf file and output html text

2008-12-17 Thread Dave
I have a JSF file to render a table. In java, how can I load the jsf file and 
get html.
 
The JSF render has API:
public void encodeEnd(FacesContext context, UIComponent component);
 
Thanks for any idea.
 
Dave


  

why forwarding request does not restore states

2008-10-25 Thread Dave
Hi,
Normal requests for a page such as http://mydomain.com/foo.jsf , works well, 
jsf states (t:saveState) are restored. However, forwarding the request in a 
filter will not restore saved states.
 
how to make request forwarding restore jsf states? Thanks.
dave


  

AddResource: how to prevent adding session id to stylesheet URL

2008-10-13 Thread Dave
Hi,
We are using AddResource to add stylesheet dynamically, like:
 
addResource.addStyleSheet(context, AddResource.HEADER_BEGIN, /main.css);
 
In the generated HTML, the current session id is in the URL, like:
 
link rel=stylesheet 
href=/main.css;jsessionid=965804C1F45636F4BBD825591EE74E3C type=text/css /
 
This breaks web browser caching. Style sheet is static. We want browser to 
cache it for one month. But adding session id breaks browser caching because 
session id is dynamic and the stylesheet url will change from one session to 
another.
 
Is there a way to prevent session id being added to the URL?  we use 
cookie-based session tracking , if cookie is disabled, URL rewriting session  
tracking will be used.
 
Thanks for help.
Dave



  

JSF for mobile device WAP/WML?

2008-09-27 Thread Dave
Hello, I am using JSF myfaces.  I got requirement to extend our current JSF app 
to mobile device such cell phone.  Does JSF support WAP/WML?  is there any 
tools?  Thanks for advice.
 
Dave


  

s:submitOnEvent for-component not found, popup error message

2008-09-26 Thread Dave
I am using the s:submitOnEvent for=buttonA event=change for 
selectOneMenu. When user selects a value,  click a button to submit a form and 
execute an action.
 
I looked at the client side HTML,
 
setTimeout(orgApacheMyfacesSubmitOnEventRegister('keypress',''selectA','buttonA');,
 50)
 
It does not happen everytime, depending on network traffic. I suspect that the 
javascript is executed before the page is completely loaded.  Is there a 
workaround?
 
Thanks for all help.
Dave
 


  

[Trinidad] Server Exception during PPR, caused by browser config?

2008-08-11 Thread Dave Rafkind
Hello, I have a Web app using: Sun's  JSF 1.2, tomahawk 1.1.6, and 
trinidad 1.2.5 (among other things).


The app works fine from my point of view, even when I log into the 
customer's VPN and access our installed instance, using IE6, IE7, FF2, 
and FF3.


However, when they access the app from their internal network, they get 
tons of Server Exception during PPR, #46 and JSF: View state could 
not be restored
errors (Javascript alerts as well as exception pages). They use IE6 
(mostly) although the errors persist with IE7.


My question is, what could be different between mine and their 
configurations that would cause such errors? Maybe some trouble with 
JSESSIONID in the url or something like that?


Thanks!
Dave

PS here are some example server stack traces (from Glassfish):

[#|2008-08-08T14:31:02.504-0500|WARNING|sun-appserver9.1|javax.enterprise.resource.webcontainer.jsf.lifecycle|_ThreadID=20;_ThreadName=httpSSLWorkerThread-8080-2;_RequestID=737f04de-49d5-4009-bd31-0a79438c28
dc;|executePhase(RESTORE_VIEW 
1,[EMAIL PROTECTED]) 
threw exception
javax.faces.application.ViewExpiredException: 
viewId:/permit/createPermit.jsf - View /permit/createPermit.jsf could 
not be restored.
   at 
com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:187)
   at 
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
   at 
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)

   at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
   at 
org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
   at 
org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:241)
   at 
org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:198)
   at 
org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:141)
   at 
org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
   at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288)
   at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
   at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
   at 
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
   at 
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)

   at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
   at 
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
   at 
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
   at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
   at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
   at 
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
   at 
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
   at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
   at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272)
   at 
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
   at 
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
   at 
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
   at 
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
   at 
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
   at 
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
   at 
com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:380)
   at 
com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
   at 
com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)

|#]


[#|2008-08-08T14:31:02.508-0500

Re: [Trinidad] Server Exception during PPR, caused by browser config?

2008-08-11 Thread Dave Rafkind

Thanks for the response! There's no SSL involved.


Matthias Wessendorf wrote:

hi,

did a quick look at the stack trace.
the PPR is also caused by the .ViewExpiredException.

do you have anything special b/c of SSL ?

-Matthias

On Mon, Aug 11, 2008 at 7:07 PM, Dave Rafkind
[EMAIL PROTECTED] wrote:
  

Hello, I have a Web app using: Sun's  JSF 1.2, tomahawk 1.1.6, and trinidad
1.2.5 (among other things).

The app works fine from my point of view, even when I log into the
customer's VPN and access our installed instance, using IE6, IE7, FF2, and
FF3.

However, when they access the app from their internal network, they get tons
of Server Exception during PPR, #46 and JSF: View state could not be
restored
errors (Javascript alerts as well as exception pages). They use IE6 (mostly)
although the errors persist with IE7.

My question is, what could be different between mine and their
configurations that would cause such errors? Maybe some trouble with
JSESSIONID in the url or something like that?

Thanks!
Dave

PS here are some example server stack traces (from Glassfish):

[#|2008-08-08T14:31:02.504-0500|WARNING|sun-appserver9.1|javax.enterprise.resource.webcontainer.jsf.lifecycle|_ThreadID=20;_ThreadName=httpSSLWorkerThread-8080-2;_RequestID=737f04de-49d5-4009-bd31-0a79438c28
dc;|executePhase(RESTORE_VIEW
1,[EMAIL PROTECTED])
threw exception
javax.faces.application.ViewExpiredException:
viewId:/permit/createPermit.jsf - View /permit/createPermit.jsf could not be
restored.
  at
com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:187)
  at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
  at
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
  at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
  at
org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
  at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317)
  at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
  at
org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:241)
  at
org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:198)
  at
org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:141)
  at
org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
  at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
  at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
  at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288)
  at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
  at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
  at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
  at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
  at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
  at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
  at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
  at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
  at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
  at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
  at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
  at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
  at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
  at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272)
  at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
  at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
  at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
  at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
  at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
  at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
  at
com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:380

Re: [Trinidad] Server Exception during PPR, caused by browser config?

2008-08-11 Thread Dave Rafkind

SSL is not set up on the server nor used in the app;
I think that line in the exception trace might be an artifact of how 
that version of Grizzly is architected.



Matthias Wessendorf wrote:

Hi

On Mon, Aug 11, 2008 at 9:39 PM, Dave Rafkind
[EMAIL PROTECTED] wrote:
  

Thanks for the response! There's no SSL involved.



  

com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)




I asked b/c of this guy. I am not familar w/ glassfish/grizzly though


  




Re: [Trinidad] Server Exception during PPR, caused by browser config?

2008-08-11 Thread Dave Rafkind

Ah, so are you suggesting to switch to the JSF 1.1 DTD for faces-config.xml?

I'm still interested in why the ViewExpiredException error would 
occur, especially

if it could be caused by a browser or network misconfiguration..

Matthias Wessendorf wrote:

On Mon, Aug 11, 2008 at 10:24 PM, Dave Rafkind
[EMAIL PROTECTED] wrote:
  

SSL is not set up on the server nor used in the app;
I think that line in the exception trace might be an artifact of how that
version of Grizzly is architected.



here is a similar stack trace:
http://jira.icefaces.org/browse/ICE-1474

-M

  

Matthias Wessendorf wrote:


Hi

On Mon, Aug 11, 2008 at 9:39 PM, Dave Rafkind
[EMAIL PROTECTED] wrote:

  

Thanks for the response! There's no SSL involved.


  

com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)



I asked b/c of this guy. I am not familar w/ glassfish/grizzly though



  





  




t:popup interrupt page loading

2008-06-11 Thread Dave
Hi,
nbsp;
lt;t:popupgt; is used on a jsf page.nbsp; When the page is loading(not 
completed yet), if mouse is over the popup, the popup is shown,nbsp;but IE 
alerts IE can not open the pagenbsp;andnbsp; then shownbsp;an error page.
How to prevent this from happening?
nbsp;
Another issue I have with lt;t:popupgt;:nbsp; popup is delayed for about 2 
seconds after mouse is over. I expect it to show immediately.nbsp; Is it 
designed this way?
nbsp;
Thanks in advance for any help.
Dave


  

inputHtml supports object

2008-05-09 Thread Dave
Hi,
   
  For the t:inputHtml, when I input object/object in its html code 
editor, it will be deleted by the t:inputHtml.  Is there a way to tell it to 
keep everything?
   
  Thanks,
  Dave

   
-
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.

function oamSubmitForm not defined

2008-05-07 Thread Dave
I am using h:commandLink on pages. Some pages work fine. But there is one 
page that did not work, IE status shows page error.
   
  I found that the page showing errors does not have 
   
  function oamSubmitForm(formName, linkId, target, params) {
  
  }
   
  so new oamSubmitForm(...)  fails.
   
  Other pages have the function defined.
   
  What is the possible cause that makes the page losing the function definition?
  Thanks for help.
   
  Dave
   
   

   
-
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.

how to set the inputHtml edit area size

2008-05-02 Thread Dave
Hi, I am using t:inputHtml. It is too small for editing. How to set its edit 
area size?
  It does not have rows/cols properties.
   
  Thanks for help.
   
  Dave

   
-
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.

inputHtml shrink when clicking edit-html-code button

2008-05-02 Thread Dave
Hi,
  t:inputHtml shrinks when clicking edit-html-code button on IE, and it 
becomes one line in height.  Is there a way to work around it? 
   
  Thanks,dave

   
-
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.

tiny-mce html editor with MyFaces, freeze for 10 seconds

2008-04-20 Thread Dave
we use Tiny_mce html editor with Myfaces. Everything worked well until Last 
Friday. The page loaded complete, seen from the IE browser status bar, but the 
progress bar was still blue. The isuse is that the page did not response to any 
mouse/key events until 10 seconds later. From server side log, the page request 
took about 0.3 seconds and response completed. I am sure it is not a network 
issue because it is in our intranet.
   
  If the page did not show the Tiny_mce editor, it worked normally even the 
page still included tiny_mce javascript in the page header. 
   
  Has anyone seen this problem?  
  Thanks in advacne very much for help.
  Dave

   
-
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.

how to render a tree2 as drop-down menu bar

2008-04-14 Thread Dave
Hi, I uses a tree2 that is working well.
  Today I got a requirement to render the tree2 as a horizontal menu bar for 
direct children under root, and drop down menu for deeper nodes. That is a 
popular style for website.
   
  For exmple,
   
   
  -File   Edit -
  Save
  Save As ..
  Print...
   
   
  Any components can be used for the tree2 and actions are bound to bean 
methods, that is very flexible.  JSCookMenu is not flexible in this sense, and 
does not work in our case.
   
  Is there any drop-down menu component working with MyFaces? that supports 
  1.  menu items can be rendered using different components such as 
commandButton/Link;
  2.  menu item can be referenced as  #{menuItem.click} for method binding.
   
  For example, for a menu item,
  h:commandLink value=Save action=#{menuItem.click}/
   
  Basically, I need to render a tree2 horizontally with drop down menu.
   
  Thanks for help.
  Dave
   
   



Does trinidad have a drop down menu (menu bar) component?

2008-04-14 Thread Dave
Hi,
  Does trinidad have a drop down menu (menu bar) component? I looked at 
development guide, it has a XML menu model, but I could not find the menu bar 
drop down compnent.
   
  Could someone show me?
   
  Thanks
  Dave



Re: Can a JSF page be in database?

2008-04-11 Thread Dave
The servlet container should have a PageLocator layer that makes JSP page 
location transparent to upper layer, so that JSP can be in filesystem, database 
or internet.
  
Jason King [EMAIL PROTECTED] wrote:
  Theoretically you could, but then you'd have to write it to the 
filesystem and recompile. It would make for a very slow system.
Dave wrote:
 Hi,
 
 Normally JSF pages are package in a war file. Is it possbile to put a 
 JSF page in database, and loaded dynamically and rendered? What I 
 like to achieve is layout design that can be dynamically added.
 
 Thanks for any idea.
 Dave

 __
 Do You Yahoo!?
 Tired of spam? Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com




 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Can a JSF page be in database?

2008-04-10 Thread Dave
Hi,
   
  Normally JSF pages are package in a war file. Is it possbile to put a JSF 
page in database, and loaded dynamically and rendered?  What I like to achieve 
is layout design that can be dynamically added.
   
  Thanks for any idea.
  Dave

 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

page navigation - secure

2008-02-07 Thread Dave
Hi,
   
  When navigating to a page that contains personal information, It needs to be 
https. For navigation rules, can I add secure/?
   
  Thanks,
  Dave 

   
-
Never miss a thing.   Make Yahoo your homepage.

JasperException: PermGen space

2008-02-02 Thread Dave
Hi, I am using JBoss 4.0.5GA on Federa Core 6 Linux for JSF application. After 
running for two days, got the following exception on server side. How to avoid 
it? Thanks for help. Dave
   
  Caused by: org.apache.jasper.JasperException: PermGen space
at 
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:455)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at 
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at 
org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:419)

   
-
Looking for last minute shopping deals?  Find them fast with Yahoo! Search.

Re: submitOnEvent callback

2008-02-01 Thread Dave
the bean method return a string that is a javascript function name.

Mario Ivankovits [EMAIL PROTECTED] wrote:  Hi!
 callback=#{bean.callbackFunction}
The callback should point to a javascript function name instead of a
bean method. callback is meant to be executed on the client.

This javascript method then should allow you to return true/false, on
false the click should not happen.

Ciao,
Mario



   
-
Looking for last minute shopping deals?  Find them fast with Yahoo! Search.

Re: submitOnEvent callback

2008-02-01 Thread Dave
Hi Martin,
  I have filed a bug in MyFaces jira. 
   
  http://issues.apache.org/jira/browse/TOMAHAWK-1187
   
  I also suggest adding a onsubmit=javascript code that can return true/false.
   
  Thanks.
  dave

Martin Marinschek [EMAIL PROTECTED] wrote:
  I have prepared a fix and will commit it, if someone (Dave?) provides
me with an issue-number ;)

regards,

Martin

On 2/1/08, Martin Marinschek wrote:
 Hi guys,

 the clue is that restoreState/saveState was implemented wrongly in
 submitOnEvent - another reason to get the component-generator up and
 running. This is the erronous code - it uses the getter to access the
 component-attributes (and will therefore store the return-value of the
 method as local value...)

 public Object saveState(FacesContext context)
 {
 return new Object[]
 {
 super.saveState(context),
 getFor(),
 getEvent(),
 getCallback()
 };
 }

 public void restoreState(FacesContext context, Object state)
 {
 Object[] states = (Object[]) state;
 super.restoreState(context, states[0]);
 forComponent = (String) states[1];
 event = (String) states[2];
 callback = (String) states[3];
 }

 On 2/1/08, Gerald Müllan wrote:
  Hi Dave,
 
  don`t know why the method is not called, maybe Mario knows it.
 
  It`s not that nice, but you may also write:
 
  callback=mySpecialUserCallback
 
  ..
 
  function mySpecialUserCallback(event, srcComponentId, clickComponentId)
  {
  return #{bean.submitOnChange};
  }
 
  This should work without any problems;
 
  cheers,
 
  Gerald
 
  On Feb 1, 2008 11:53 AM, Dave wrote:
   the bean method return a string that is a javascript function name.
  
  
  
   Mario Ivankovits wrote:
   Hi!
callback=#{bean.callbackFunction}
   The callback should point to a javascript function name instead of a
   bean method. callback is meant to be executed on the client.
  
   This javascript method then should allow you to return true/false, on
   false the click should not happen.
  
   Ciao,
   Mario
  
  
  
  
  
   
   Looking for last minute shopping deals? Find them fast with Yahoo!
 Search.
 
 
 
  --
  http://www.irian.at
 
  Your JSF powerhouse -
  JSF Consulting, Development and
  Courses in English and German
 
  Professional Support for Apache MyFaces
 


 --

 http://www.irian.at

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

 Professional Support for Apache MyFaces



-- 

http://www.irian.at

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

Professional Support for Apache MyFaces


   
-
Looking for last minute shopping deals?  Find them fast with Yahoo! Search.

submitOnEvent callback

2008-01-31 Thread Dave
for s:submitOnEvent, in my case, whether to submit depends on a bean 
variable. So I need a rendered property.
   
  h:selectOneMenu  
  s:submitOnEvent for=aButton event=change 
rendered=#{bean.submitOnChange} /
  /h:selectOneMenu
   
  h:commandButton id=aButton .../
   
  But the s:submitOnEvent does not have a rendered property.  It has a 
callback for the purpose. The callback function's signature 
   
  function mySpecialUserCallback(event, srcComponentId, clickComponentId);
   
  How to let the callback function use the backing bean's variable?
   
  If the callback is javascript code, it can serve the purpose
  callback=#{bean.variable? return true: return false}
   
  Thanks for help
  Dave

   
   
   

   
-
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.

Re: submitOnEvent callback

2008-01-31 Thread Dave
callback=#{bean.callbackFunction}
   
  The bean method is not called. 


Dave [EMAIL PROTECTED] wrote:for s:submitOnEvent, in my case, whether 
to submit depends on a bean variable. So I need a rendered property.
   
  h:selectOneMenu  
  s:submitOnEvent for=aButton event=change 
rendered=#{bean.submitOnChange} /
  /h:selectOneMenu
   
  h:commandButton id=aButton .../
   
  But the s:submitOnEvent does not have a rendered property.  It has a 
callback for the purpose. The callback function's signature 
   
  function mySpecialUserCallback(event, srcComponentId, clickComponentId);
   
  How to let the callback function use the backing bean's variable?
   
  If the callback is javascript code, it can serve the purpose
  callback=#{bean.variable? return true: return false}
   
  Thanks for help
  Dave

   
   
   

-
  Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.

   
-
Looking for last minute shopping deals?  Find them fast with Yahoo! Search.

How to use https together with http

2008-01-31 Thread Dave
For jsf page (myfaces), some data need to go through SSL such as bank 
information.
  For better performance, other pages(or forms) can use http.  
   
  h:form ... /h:form
   
  h:form ... /h:form
   
  if a form may contain personal data, it should be summitted using https. Also 
we need to let user know it is secure by showing a lock and https:// in 
browser address bar.
   
  How can I do this?
   
  sometimes The IE browser shows a warning: the page contains both secure and 
nonsecure data.  what is the meaning? how to avoid the warning?
   
  Thanks for ideas.
  Dave

   
-
Looking for last minute shopping deals?  Find them fast with Yahoo! Search.

Re: JBoss 4.2.2 and Myfaces - java.lang.RuntimeException: Cannot find FacesContext

2008-01-13 Thread Dave
hi Anton,  I am using
   
   myfaces-api-1.1.5.jar
 myfaces-impl-1.1.5.jar
 tomahawk-1.1.7-SNAPSHOT.jar
 tomahawk-sandbox-1.1.5-SNAPSHOT.jar
   
  Thanks,
  Dave

Anton Gavazuk [EMAIL PROTECTED] wrote:
  Which version of MyFaces?

2008/1/13, Dave :
 Everything is runing well in JBoss 4.0.5GA with myfaces.

 For JBoss 4.2.2GA, I uses myfaces jars bundled in web-inf/lib and add the
 following in web.xml, and remove all libs under jsf-libs.

 
 
org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL

 
true

 

 I got the following exception: Thanks for help.

 java.lang.RuntimeException: Cannot find FacesContext
 at
 javax.faces.webapp.UIComponentClassicTagBase.getFacesContext(UIComponentClassicTagBase.java:1835)
 at
 javax.faces.webapp.UIComponentClassicTagBase.setJspId(UIComponentClassicTagBase.java:1652)
 at
 org.apache.jsp.index_jsp._jspx_meth_f_005fview_005f0(index_jsp.java:124)
 at
 org.apache.jsp.index_jsp._jspService(index_jsp.java:93)
 at
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
 at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
 at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
 at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
 at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
 at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at
 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654)
 at
 org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:445)
 at
 org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)
 at
 org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:292)
 at
 org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:419)
 at
 org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:211)
 at
 org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
 at
 org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:229)
 at
 org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
 at
 org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:229)
 at
 org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
 at
 org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
 at
 javax.faces.webapp.FacesServlet.service(FacesServlet.java:140)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)


 
 Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it
 now.




   
-
Never miss a thing.   Make Yahoo your homepage.

JBoss 4.2.2 and Myfaces - java.lang.RuntimeException: Cannot find FacesContext

2008-01-12 Thread Dave
Everything is runing well in JBoss 4.0.5GA with myfaces.
   
  For  JBoss 4.2.2GA,  I uses myfaces jars bundled in web-inf/lib and add the 
following in web.xml, and remove all libs under jsf-libs.
   
  context-param
  param-nameorg.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL/param-name
  param-valuetrue/param-value
  /context-param 
   
  I got the following exception:  Thanks for help.
   
  java.lang.RuntimeException: Cannot find FacesContext
at 
javax.faces.webapp.UIComponentClassicTagBase.getFacesContext(UIComponentClassicTagBase.java:1835)
at 
javax.faces.webapp.UIComponentClassicTagBase.setJspId(UIComponentClassicTagBase.java:1652)
at 
org.apache.jsp.index_jsp._jspx_meth_f_005fview_005f0(index_jsp.java:124)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:93)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654)
at 
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:445)
at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)
at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:292)
at 
org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:419)
at 
org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:211)
at 
org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
at 
org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:229)
at 
org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
at 
org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:229)
at 
org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
at 
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:140)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)


   
-
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.

[Trinidad] Looking for sample application with Trinidad

2008-01-11 Thread Manley Dave A Ctr HQ 554 ELSG/SBE
Are there any sample applications for downloading that use the Trinidad 
components (as opposed to the original ADF Faces)?

Thanks

Dave Manley


JSF RI: plan to solve multi-window issue?

2008-01-07 Thread Dave
Does JSF RI development team have the plan to solve the following issue?  I 
like to file a bug for this, but tried the issue tracker many times, it did not 
work out.
   
  Everything works fine for myfaces on Jboss 4.0.5GA. After I moved to JBoss 
4.2.2 with faces RI. I got issues when clicking a command link with 
target=_blank. First time clicking the link is ok, but clicking the link again 
did not work, did not go to the Invoke Application phase to execute action.  
   
  The issue was disscussed:
   
  
http://www.nabble.com/Jboss-4.2.2-RI-did-not-work-for-clicking-links-w--target%3D_blank-td14257806.html
   
  Thanks for info.
  Dave

   
-
Looking for last minute shopping deals?  Find them fast with Yahoo! Search.

a4j Error parsing XML

2007-12-17 Thread Dave
I am using ajax4jsf in my web app that is running on JBoss 4.0.5 with myfaces. 
I remember It was working before, but it is not working now. I could not figure 
out what is wrong. I turned on a4j log:  
  At the end of the a4j response, 
   
  error[1:48:13,264]: Error parsing XML
error[1:48:13,264]: Parse Error: Document is empty
   
  But I tried it on JBoss 4.2.2 with jsf ri,  and it worked without the error.
  Could anyone give me a clue what is the issue?
   
  Thanks,
Dave

   
-
Never miss a thing.   Make Yahoo your homepage.

Re: Jboss 4.2.2 RI did not work for clicking links w/ target=_blank

2007-12-14 Thread Dave
I downloaded ri jsf 1.2_07 and replaced jsp-api.jar and jsf-imp.jar under JBoss 
4.2.2 jsf-libs.
com.sun.faces.serializeServerState is set to true in web.xml. 
  But I got the following exception:

   ERROR [[FacesServlet]] Servlet.service() for servlet FacesServlet threw 
exception
java.lang.ClassNotFoundException: boolean
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at 
com.sun.faces.renderkit.ApplicationObjectInputStream.resolveClass(ApplicationObjectInputStream.java:74)
at 
java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
at java.io.ObjectInputStream.readClass(ObjectInputStream.java:1462)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1312)
at 
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1945)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1869)
at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
at java.util.ArrayList.readObject(ArrayList.java:593)
at sun.reflect.GeneratedMethodAccessor102.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1846)
at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
at 
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1945)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1869)
at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
at java.util.ArrayList.readObject(ArrayList.java:593)
at sun.reflect.GeneratedMethodAccessor102.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)

   
  Thanks for help
  Dave
  

simon [EMAIL PROTECTED] wrote:
  
On Tue, 2007-12-11 at 08:37 -0800, Ryan Lubke wrote:
 
 
 Dave-53 wrote:
  
  Hi Ryan,
  
  Thanks for help. In web.xml, we have
  
  
  
javax.faces.STATE_SAVING_METHOD

  
server

  
  
  
  
org.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION

  
20

  
  
  
  
org.apache.myfaces.SERIALIZE_STATE_IN_SESSION

  
true

  
  
  
  
org.apache.myfaces.COMPRESS_STATE_IN_SESSION

  
false

  
  
  These parameters are not changed for RI, I am wondering if I need to
  change or add some for RI.
  
  Yes, I use to save request-scope bean data. 
  The senarios:
  
  On window 1, click link A, execute action that changed request scope
  bean data Foo, the response was shown on Window 2. It worked well.
  
  Again on window 1, click link A, this step did not go through Invoke
  Application phase.
  
  It works for MyFaces.
  
  Thanks for any help.
  Dave
  
  
 
 Well, JBoss 4.2.2 uses JSF RI 1.2_04 P02. Try upgrading to 1.2_06 [1], and
 set com.sun.faces.serializeServerState to true.
 We added the option to serialize component state to the session in 1.2_05. 
 
 [1]
 https://javaserverfaces.dev.java.net/servlets/ProjectDocumentList?folderID=8346expandFolder=8346folderID=0
 

Serializing the state (1) saves server memory, and (2) avoids ugly
surprises when an app is later clustered and suddenly it is realised
that objects in the component tree are not serializable.

Similarly for compressing the state, that just saves memory but should
have no effect on the app behaviour.

I cannot see what link there could be between either of these settings
and the described symptoms.

Cheers,

Simon



   
-
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.

t:tree base is null

2007-12-11 Thread Dave
Hi, 
  h:panelGroup rendered=#{bean.foo != null}
   
  t:tree value=#{bean.foo.treeModel}
  ...
  /t:tree
   
  /h:panelGroup
   
  bean is not null.
  Why did I got the following error:
   
  javax.faces.el.PropertyNotFoundException: Base is null: .foo
at 
org.apache.myfaces.el.ValueBindingImpl.resolveToBaseAndProperty(ValueBindingImpl.java:477)
at 
org.apache.myfaces.el.ValueBindingImpl.setValue(ValueBindingImpl.java:251)
at 
org.apache.myfaces.custom.tree.taglib.TreeTag.doStartTag(TreeTag.java:349)
   
  thanks!
  Dave

   
-
Never miss a thing.   Make Yahoo your homepage.

Jboss 4.2.2 RI did not work for clicking links w/ target=_blank

2007-12-10 Thread Dave
  Everything works fine for myfaces on Jboss 4.0.5GA. After I moved to JBoss 
4.2.2 with faces RI. I got issues when clicking a command link with 
target=_blank. First time clicking the link is ok, but clicking the link again 
did not work, did not go to the Invoke Application phase to execute action.  
   
  I suspect the RI did not serialize the request scope beans. So they are 
shared between requests.
   
  What is the RI param for 
  org.apache.myfaces.SERIALIZE_STATE_IN_SESSION ?
   
  Thanks for help!
  Dave

   
-
Looking for last minute shopping deals?  Find them fast with Yahoo! Search.

Re: Jboss 4.2.2 RI did not work for clicking links w/ target=_blank

2007-12-10 Thread Dave
Hi Ryan,
   
  Thanks for help.  In web.xml,  we have
   
  context-param
  param-namejavax.faces.STATE_SAVING_METHOD/param-name
  param-valueserver/param-value
  /context-param
  
  context-param
  param-nameorg.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION/param-name
  param-value20/param-value
  /context-param 
  
  context-param
  param-nameorg.apache.myfaces.SERIALIZE_STATE_IN_SESSION/param-name
  param-valuetrue/param-value
  /context-param 
  
  context-param
  param-nameorg.apache.myfaces.COMPRESS_STATE_IN_SESSION/param-name
  param-valuefalse/param-value
  /context-param 
  
These parameters are not changed for RI,  I am wondering if I need to change or 
add some for RI.
   
  Yes, I use t:saveState to save request-scope bean data. 
  The senarios:
   
  On window 1, click link A, execute action that changed request scope bean 
data Foo, the response was shown on Window 2.  It worked well.
   
  Again on window 1, click link A, this step did not go through Invoke 
Application phase.
   
  It works for MyFaces.
   
  Thanks for any help.
  Dave
   
  
Ryan Lubke [EMAIL PROTECTED] wrote:
  


Dave-53 wrote:
 
 Everything works fine for myfaces on Jboss 4.0.5GA. After I moved to
 JBoss 4.2.2 with faces RI. I got issues when clicking a command link with
 target=_blank. First time clicking the link is ok, but clicking the link
 again did not work, did not go to the Invoke Application phase to execute
 action. 
 
 I suspect the RI did not serialize the request scope beans. So they are
 shared between requests.
 
 What is the RI param for 
 org.apache.myfaces.SERIALIZE_STATE_IN_SESSION ?
 
 Thanks for help!
 Dave
 
 
 -
 Looking for last minute shopping deals? Find them fast with Yahoo!
 Search.
 

The RI (now Mojarra) takes no state saving action against request scoped
beans. They are valid for that request only, so they won't be shared.

Are you using something like t:saveState?

That said as of 1.2_05, we added com.sun.faces.serializeServerState to
serialize the component state prior to storing it in the session.


-- 
View this message in context: 
http://www.nabble.com/Jboss-4.2.2-RI-did-not-work-for-clicking-links-w--target%3D_blank-tp14257806p14264492.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



   
-
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.

Tree2 for tree Table

2007-12-01 Thread Dave
Hello, Can I use Tree2 for tree table? If not, any plan for that?
   
  Thanks
  Dave

   
-
Get easy, one-click access to your favorites.  Make Yahoo! your homepage.

tree2 expand node by clicking description

2007-11-26 Thread Dave
For tree2, I like to expand a node (client side toggle) when clicking its 
description. How to do that? Thanks! 
   
  Dave

   
-
Be a better sports nut! Let your teams follow you with Yahoo Mobile. Try it now.

How to disconnect a request from current session

2007-11-15 Thread Dave
For cookie based session tracking, on a jsp or jsf page, when a user click 
links, all requests are in the same session. Is there a way to open a new 
session when a user clicks a link and send a request?  Can Filter do that ?
   
  If I open a new IE from desktop, all requests from the new IE window are in a 
different session. Is there a way to run IE or any other application by 
clicking on a page? 
   
  Thanks for any help.
  David

   
-
Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See how.

build Tomahawk error using mvn

2007-11-10 Thread Dave
I checked out the latest Tomahawk source code, and tried to build it. But I got 
the following error using maven. Thanks for help.
   
  C:\tomahawkmvn install
  
[INFO] Scanning for projects...
[INFO] 
[ERROR] FATAL ERROR
[INFO] 
[INFO] Error building POM (may not be this project's POM).
  
Project ID: org.apache.myfaces.tomahawk:tomahawk:jar:null
  Reason: Cannot find parent: org.apache.myfaces.tomahawk:tomahawk-project for 
project: org.apache.myfaces.tomahawk:tomaha
wk:jar:null for project org.apache.myfaces.tomahawk:tomahawk:jar:null
  
[INFO] 
[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: Cannot find parent: 
org.apache.myfaces.tomahawk:tomahawk-project for p
roject: org.apache.myfaces.tomahawk:tomahawk:jar:null for project 
org.apache.myfaces.tomahawk:tomahawk:jar:null
at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:290)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.project.ProjectBuildingException: Cannot find 
parent: org.apache.myfaces.tomahawk:tomahawk-project for project: 
org.apache.myfaces.tomahawk:tomahawk:jar:null for project 
org.apache.myfaces.tomahawk:tomahawk:jar:null

 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

JBoss 4.2.2 and MyFaces

2007-11-10 Thread Dave
I upgraded to JBoss 4.2.2 GA from 4.0.5. and followed the following instruction 
to use MyFaces core instead of the built-in JSF ri.
  http://wiki.jboss.org/wiki/Wiki.jsp?page=JBoss5AndMyFaces
   
  But I got the RuntimeException: can not find FacesContext
   
  java.lang.RuntimeException: Cannot find FacesContext
at 
javax.faces.webapp.UIComponentClassicTagBase.getFacesContext(UIComponentClassicTagBase.java:1796)
at 
javax.faces.webapp.UIComponentClassicTagBase.setJspId(UIComponentClassicTagBase.java:1613)
at 
org.apache.jsp.index_jsp._jspx_meth_f_005fview_005f0(index_jsp.java:152)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:120)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654)
at 
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:445)
at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)
at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:292)
at 
org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:419)
at 
org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:211)

   
   
  Thanks for help.

 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: JBoss 4.2.2 and MyFaces

2007-11-10 Thread Dave
Thanks for quick help.
  In my jsf application, I did not define or set  classloader.
  What could be the cause? Thanks!

Bernhard Huemer [EMAIL PROTECTED] wrote:
  Hello,

sounds like a classloader issue as you're still using the JSF RI, at 
least according to the error message (FacesContext not found - MyFaces 
vs. Cannot find FacesContext - JSF RI; and of course the line numbers 
don't match).

regards,
Bernhard

On 11/10/2007 +0100,
Dave wrote:
 I upgraded to JBoss 4.2.2 GA from 4.0.5. and followed the following 
 instruction to use MyFaces core instead of the built-in JSF ri.
 http://wiki.jboss.org/wiki/Wiki.jsp?page=JBoss5AndMyFaces
 
 But I got the RuntimeException: can not find FacesContext
 
 java.lang.RuntimeException: Cannot find FacesContext
 at 
 javax.faces.webapp.UIComponentClassicTagBase.getFacesContext(UIComponentClassicTagBase.java:1796)
 at 
 javax.faces.webapp.UIComponentClassicTagBase.setJspId(UIComponentClassicTagBase.java:1613)
 at 
 org.apache.jsp.index_jsp._jspx_meth_f_005fview_005f0(index_jsp.java:152)
 at org.apache.jsp.index_jsp._jspService(index_jsp.java:120)
 at 
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
 at 
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
 at 
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
 at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at 
 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654)
 at 
 org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:445)
 at 
 org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)
 at 
 org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:292)
 at 
 org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:419)
 at 
 org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:211)
 
 
 Thanks for help.
 
 __
 Do You Yahoo!?
 Tired of spam? Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com
 



 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

tomahawk build error using maven

2007-11-10 Thread Dave
I checked out the latest tomahawk source code, tried to build it. but got the 
following error. 
  could someone help me. Thanks!
   
  C:\tomahawkmvn install
[INFO] Scanning for projects...
[INFO] 
[ERROR] FATAL ERROR
[INFO] 
[INFO] Error building POM (may not be this project's POM).
  
Project ID: org.apache.myfaces.tomahawk:tomahawk:jar:null
  Reason: Cannot find parent: org.apache.myfaces.tomahawk:tomahawk-project for 
project: org.apache.myfaces.tomahawk:tomaha
wk:jar:null for project org.apache.myfaces.tomahawk:tomahawk:jar:null
  
[INFO] 
[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: Cannot find parent: 
org.apache.myfaces.tomahawk:tomahawk-project for p
roject: org.apache.myfaces.tomahawk:tomahawk:jar:null for project 
org.apache.myfaces.tomahawk:tomahawk:jar:null
at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:290)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.project.ProjectBuildingException: Cannot find 
parent: org.apache.myfaces.tomahawk:tomahawk-project for project: 
org.apache.myfaces.tomahawk:tomahawk:jar:null for project 
org.apache.myfaces.tomahawk:tomahawk:jar:null

 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

[Trinidad]: where are the snapshot builds?

2007-10-12 Thread Dave Syer

The website seems to be out of date
(http://myfaces.apache.org/trinidad/trinidad-api/project-summary.html refers
to the podling and 1.0.2-SNAPSHOT) and lacking information about where to
find Maven artifacts.  I looked on the usual Apache snapshots repo
(http://people.apache.org/maven-snapshot-repository) and found only 1.2.1
snapshots, and 1.2.2 is fully released in central.  So where is
1.2.3-SNAPSHOT hiding?
-- 
View this message in context: 
http://www.nabble.com/-Trinidad-%3A-where-are-the-snapshot-builds--tf4612169.html#a13171305
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: [Trinidad] Dynamic content in a popup?

2007-10-12 Thread Dave Syer

Thanks, that is good to know.  The af:dialog actually looks pretty similar to
the tr:panelPopup in terms of functionality.  Maybe just a better
implementation?  I haven't tried it because unfortunately for this project I
don't think it will be possible to use ADF.

The Trinidad popupPanel has the same interesting feature you mention (it's
content is part of the main tree), but it maybe isn't working as well as I
would like it to.  Can anyone share any insight into the direction of the
vanilla Trinidad component?  Will it improve?


Gary VanMatre wrote:
 
 Rich ADF Faces has support for these types of dialogs [1].  It is built on
 top of Trinidad.
 
 There are several flavors (af:popup, af:popup + af:dialog, 
 af:popup + af:panelWindow and af:popup + af:menu).  
 
 What's really interesting about the popup framework is that all the 
 components exist within the same component tree unlike Trinidad dialogs.
 The af:dialog and af:panelWindow simulate an external window using 
 div layers.  They can operate in model and non modal modes.
 
 [1]
 http://www.oracle.com/technology/products/adf/adffaces/11/doc/multiproject/adf-richclient-api/enhanced-tagdoc.html
 
 
 Gary
 

-- 
View this message in context: 
http://www.nabble.com/-Trinidad--Dynamic-content-in-a-popup--tf4603767.html#a13171138
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: [Trinidad]: where are the snapshot builds?

2007-10-12 Thread Dave Syer

Thanks, but neither of those links is a Maven repo, or contains references to
one that I can find 1.2.3 in.  I looked in the source control already to see
if the distribution management section of the parent pom was any help, but
the repo there looks like the standard Apache snapshot repo, which only has
up to 1.2.1. 

Any other suggestions?


wolfgang.toepfer wrote:
 
 
 
 
 
 
 Hi,
 
 There is
 
 http://wiki.apache.org/myfaces/Trinidad_JSF12_Support
 
 and as far as I could see the JSF 1.2.3 is in
 
 https://svn.apache.org/repos/asf/myfaces/trinidad/branches/1.2.3-branch/
 
 thus being the latest JSF 1.2 branch.
 
 Best,
 Wolfgang.
 
 -Dave Syer [EMAIL PROTECTED] schrieb: -
 
 An: users@myfaces.apache.org
 Von: Dave Syer [EMAIL PROTECTED]
 Datum: 12.10.2007 10:36AM
 Thema: [Trinidad]: where are the snapshot builds?
 
 
 The website seems to be out of date
 (http://myfaces.apache.org/trinidad/trinidad-api/project-summary.html
 refers
 to the podling and 1.0.2-SNAPSHOT) and lacking information about where to
 find Maven artifacts.  I looked on the usual Apache snapshots repo
 (http://people.apache.org/maven-snapshot-repository) and found only 1.2.1
 snapshots, and 1.2.2 is fully released in central.  So where is
 1.2.3-SNAPSHOT hiding?
 --
 View this message in context:
 http://www.nabble.com/-Trinidad-%3A-where-are-the-snapshot-builds--tf4612169.html#a13171305
 
 Sent from the MyFaces - Users mailing list archive at Nabble.com.
 
 
 
 PTA Programmier-Technische Arbeiten GmbH
 Seckenheimer Str. 65-67, 68165 Mannheim
 Amtsgericht Mannheim, HRB 1139
 USt-IdNr.: DE 143 839 368
 Geschäftsführer:
 Dipl.-Ing. Peter Fischer
 Dr. Harald W. Busch
 Dipl.-Kfm. Knut Fischer
 
 **
 http://www.pta.de
 Mit 1504 Erfahrungsberichten aus 38 Jahren erfolgreicher Projektarbeit!
 **
 

-- 
View this message in context: 
http://www.nabble.com/-Trinidad-%3A-where-are-the-snapshot-builds--tf4612169.html#a13174199
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: [Trinidad] Dynamic content in a popup?

2007-10-11 Thread Dave Syer

Thanks.  I checked out the demo of the dialog framework.  I actually don't
want a dialog - they drive users potty.  I want to use the tr:popupPanel (or
similar mechanism with floating div).  Is there any way to do that?


Abhi-10 wrote:
 
 in the action method of button add logic to populate your dynamic data and
 return dialog:filname.jsf. In your dialog file you can display data that
 you have generated during action method.
 
 

-- 
View this message in context: 
http://www.nabble.com/-Trinidad--Dynamic-content-in-a-popup--tf4603767.html#a13150524
Sent from the MyFaces - Users mailing list archive at Nabble.com.



inputTextHelp value if no change

2007-10-10 Thread Dave
t:inputTextHelp value=#{bean.value} helpText=Please input a name/
   
  if user does not input anything and leave the help text unchanged, the 
binding value should be null. But currently it is the help text.
   
  Is this a bug?
  Dave
   

   
-
Need a vacation? Get great deals to amazing places on Yahoo! Travel. 

Re: [Trinidad]: is there a way to get an onLoad from a partial submit?

2007-10-10 Thread Dave Syer

Looks interesting.  But I get a Javascript error
TrPage.getInstance().addDomReplaceListener is not a function.  I am using
1.2.2.  When I look in the jar file I find Page.js and TrPage.getINstance()
is defined there but I can't see the callback.  Is it a new feature?


Abhijit Ghosh wrote:
 
 Hi Dave,
 There is a 'TrPage.getInstance
 ().getRequestQueue().addStateChangeListener(myCallback);'
 and a
 'TrPage.getInstance().addDomReplaceListener(myCallback);' which might help
 you.
 
 More information here:
 http://myfaces.apache.org/trinidad/devguide/ppr.html#Javascript%20APIs%20for%20PPR
 
 HTH,
 Abhi
 
 On 10/9/07, Dave Syer [EMAIL PROTECTED] wrote:


 Is there a way to get an onLoad from a partial submit?  It seems like
 there
 should be a way to get a client-side callback when the Ajax request is
 complete, so I can show a hidden panel.  Is it possible?

 Alternatively, is there a way to add an actionListener to a panelPopup
 component, which would probably be the most direct way to do what I
 want?  I
 find it quite strange that it is not exposed as a standard attribute of
 that
 component anyway.  Is there a reason why it wouldn't be possible to
 expose
 as an attribute (or facet)?
 --
 View this message in context:
 http://www.nabble.com/-Trinidad-%3A-is-there-a-way-to-get-an-%22onLoad%22-from-a-partial-submit--tf4593436.html#a13113193
 Sent from the MyFaces - Users mailing list archive at Nabble.com.


 
 

-- 
View this message in context: 
http://www.nabble.com/-Trinidad-%3A-is-there-a-way-to-get-an-%22onLoad%22-from-a-partial-submit--tf4593436.html#a13130847
Sent from the MyFaces - Users mailing list archive at Nabble.com.



[Trinidad] Dynamic content in a popup?

2007-10-10 Thread Dave Syer

I want to press a button and have an action execute to populate some data
that then pops up in a panelPopup through PPR.  All the examples of
panelPopup I found use static content inside the popup, so I can't see if it
is possible, or how it might work.  Is it doable?  Will it be doable?

Without PPR, if I put a button in the trigger facet I can get the action to
execute, but then the popup a) is one step behind the button click (because
it pops up before the action is executed and the Ajax request comes back),
and b) it often isn't positioned correctly on the window (the top gets cut
off) - how does Trinidad calculate the content height?  With PPR it is sort
of the same but worse - sometimes I get the popup (with the wrong content as
before) to flash up briefly and then disappear, and sometimes I never even
get the server requrest to fire.  Clearly either I am doing it wrong or
dynamic popups are not supported.  Anybody got any ideas?
-- 
View this message in context: 
http://www.nabble.com/-Trinidad--Dynamic-content-in-a-popup--tf4603767.html#a13145371
Sent from the MyFaces - Users mailing list archive at Nabble.com.



[Trinidad]: is there a way to get an onLoad from a partial submit?

2007-10-09 Thread Dave Syer

Is there a way to get an onLoad from a partial submit?  It seems like there
should be a way to get a client-side callback when the Ajax request is
complete, so I can show a hidden panel.  Is it possible?

Alternatively, is there a way to add an actionListener to a panelPopup
component, which would probably be the most direct way to do what I want?  I
find it quite strange that it is not exposed as a standard attribute of that
component anyway.  Is there a reason why it wouldn't be possible to expose
as an attribute (or facet)?
-- 
View this message in context: 
http://www.nabble.com/-Trinidad-%3A-is-there-a-way-to-get-an-%22onLoad%22-from-a-partial-submit--tf4593436.html#a13113193
Sent from the MyFaces - Users mailing list archive at Nabble.com.



How to create backing bean like bundle

2007-09-28 Thread Dave
I have a Map (name -- value), and prefer to access values (from JSF page) 
using #{myMap.Foo}  where Foo is the key, which is the same as how to access 
resource bundle #{bundle.Foo}.  
   
  There are 100+ values in the map, and I do not like to write 100+ getter 
methods. Please help. Thanks!
   
  David

   
-
 Check out  the hottest 2008 models today at Yahoo! Autos.

JSCookMenu Help inline style

2007-09-26 Thread Dave
Hi, 
   
  I like to use my own theme, for example ThemeFoo,
   
  h:form
  t:jscookMenu layout=hbr theme=ThemeFoo
  t:navigationMenuItems value=#{bean.menuItems} /
  /t:jscookMenu
  /h:form
   
  I included the CSS for the theme inline in the page.
   
  style
 .ThemeFooMain { ..}
 .ThemeFooSubMenuTable { ..}
.
  /style
   
  The menu did not show up. 
  I can not put the style in the file because it is pragmatically generated.  
What else do you need to do for the menu to work?  
   
  Thanks
  Dave

   
-
Building a website is a piece of cake. 
Yahoo! Small Business gives you all the tools to get online.

Use data model for JSCookMenu like tree/tree2

2007-09-23 Thread Dave
JSCookMenu is quite nice, but it is not very flexible. Each Navigation menu 
item must be statically bound to a method like action=#{bean.action}. As a 
result we can not use the same method for different menu item actions. Also 
there is no way to pass parameters to action methods.
   
  Using data model and rendering menu like tree2 gives users freedom on how to 
render each menu item. For example, commankLink, commandButton, param, etc.
   
  What do you think?  Thanks!
  Dave

   
-
Luggage? GPS? Comic books? 
Check out fitting  gifts for grads at Yahoo! Search.

Where are the docs for 1.2?

2007-09-19 Thread Dave Syer

The website for Trinidad has downloads for 1.0.3 and 1.2.  Which version do
the docs relate to?  Where are the 1.2 docs?
-- 
View this message in context: 
http://www.nabble.com/Where-are-the-docs-for-1.2--tf4479611.html#a12773310
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Trinidad, tr:componentRef in 1.2?

2007-09-19 Thread Dave Syer

I have an application that depends onTrinidad 1.0.3, and uses
tr:componenrRef, which is in the schema, but not in the docos.  I want to
upgrade to 1.2, but the tr:componentRef barfs with Unable to find setter
method for attribute: componentType.  Is it still supported?  What
alternatives are there?
-- 
View this message in context: 
http://www.nabble.com/Trinidad%2C-tr%3AcomponentRef-in-1.2--tf4479644.html#a12773451
Sent from the MyFaces - Users mailing list archive at Nabble.com.



tree2 - style for a node's children area

2007-09-18 Thread Dave
Hi, I am using tomahawk tree2.  Is there a way to specify CSS style for a 
node's children area? For example, put a border around all the children of a 
node.
   
  Node A
  --
  |  child node 1 |
  |  child node 2 |
  |  child node 3 |
  ||
   
  Thanks for any idea.
  Dave

   
-
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, 
photos  more. 

Any plan to add Drag and Drop to MyFaces?

2007-09-13 Thread Dave
Hello,  I have seen many web pages have Drag and Drop (DnD) features. Is there 
any plan to add DnD functionality to MyFaces (Tomahawk) ?  RichFaces has DnD, 
but 
   
  1. it lacks precise positioning, For example, drag a panelGroup and drop it 
between two other panelGroups.
   
  2. It can not show the whole panelGroup visually while dragging, only an icon.
   
  Have a nice day!
  Dave

   
-
Be a better Globetrotter. Get better travel answers from someone who knows.
Yahoo! Answers - Check it out.

  1   2   3   4   5   6   >