Re: Next stable version of sandbox?

2006-02-23 Thread Werner Punz
Hi Andrew always have in mind that the sandbox is sort of a Tomahawk
unstable ...
anything in there can get a major overhaul between versions and to the
worse might be pulled.
(although for most components it is very very unlikely)



Andrew Robinson schrieb:
> I have a bit of a dilemma. I would like to have the stability of
> MyFaces 1.1.1, but I'd like to use some of the new Sandbox components
> (like validateCompareTo) which are not in the 1.1.1 release and seem
> to require the newest core of myfaces to work (validateCompareTo was
> throwing class and method not found errors when I tried using it on
> myfaces 1.1.1).
> 
> In the SVN branch, I find I come across many errors. The last one was
> a bad one. About a week ago t:commandButton tried to treat the
> "action" property as a ValueBinding instead of a MethodBinding.
> 
> Any idea on the next scheduled release? (rc or beta would be nice over
> source control updates).
> 
> Thanks,
> Andrew
> 



Re: Ajaxanywhere

2006-02-23 Thread Enrique Medina
Sorry, you were right...I've tried it and it works great, but there are some cases where I get a NullPointerException when clicking the ajaxed button. But then I click it again, and it works!!! Debugging through your code, I see that when the cause why the exception is thrown is due to a call to the internal writer object of your BufferedResponseWrapper class, which is null. But it is not null for the second request on the same button... I'm missing something...
By the way, using your proposal, should I continue using the ajaxAnywhere.getZonesToReload?
Thanks very much for your support ;-)2006/2/23, Vitaliy Shevchuk <
[EMAIL PROTECTED]>:






it IS the other 
way round ;) read carefuly my message 
 
ajaxAnywhere.substituteSubmitButtonsBehavior(true,[ajaxAnywhere.findForm().elements['mainForm:selectBoxBtn']]); 
// <-- arrays of "ajaxed" 
buttons

  - Original Message - 
  
From: 
  Enrique 
  Medina 
  To: 
Vitaliy Shevchuk 
  Cc: 
MyFaces Discussion ; [EMAIL PROTECTED] ; 
[EMAIL PROTECTED] ; [EMAIL PROTECTED] ; 
[EMAIL PROTECTED] ; 
  [EMAIL PROTECTED] 
  
  Sent: Thursday, February 23, 2006 8:38 
  AM
  Subject: Re: Ajaxanywhere

  Hi Vitaliy,Then you mean that buttons that are not 
  Ajaxed must be passed as argument to the substituteSubmitButtonsBehaviour? I 
  though it was the other way round; i.e. arrays of "ajaxed" buttons...
  2006/2/22, Vitaliy Shevchuk <[EMAIL PROTECTED]>:

  
Hi guys,
 
first of all, sorry for not providing a proper 
support on AjaxAnywhere forum. I have been doing it for over 4 months but 
don't have much of free time now.
 
The first solution for your problem is to 
specify a list of Ajaxed buttons when calling 
substituteSubmitButtonsBehavior. So other buttons would stay 
For "all2.jsf" from the DEMO application it 
would look like this : 
    
ajaxAnywhere.substituteSubmitButtonsBehavior(true,[ajaxAnywhere.findForm().elements['mainForm:selectBoxBtn']]);
then, if you add a second command button 

    
it would work without Ajax.
 
some doc is available here 
http://ajaxanywhere.sourceforge.net/js_docs_out/AjaxAnywhere.html#substituteSubmitButtonsBehavior 
 
Vitaliy.
 
PS. Indeed, there are several bugs discovered 
here and I need to fix them. It should work when returning null from 
getZonesToRefresh(), next release will fix it.
PPS. for the navigation to another page when 
submitting with AA, did you try "redirect" parameter in JSF config? I'm not 
sure but it should work, as response.sendRedirect() is interpreted as 
location.href="" on the client side.


  - 
  Original Message - 
  
From: 
  Enrique Medina 
  To: 
  MyFaces 
  Discussion ; [EMAIL PROTECTED] ; 
  [EMAIL PROTECTED] ; 
[EMAIL PROTECTED] 
  ; [EMAIL PROTECTED] ; 
[EMAIL PROTECTED] ; [EMAIL PROTECTED]
 ; [EMAIL PROTECTED] 
  Sent: 
  Tuesday, February 21, 2006 9:45 PM
  Subject: 
  Re: Ajaxanywhere
  And more testing...I have downloaded the DEMO from 
  the Ajaxanywhere site, and made a change on the facesFrame.jsp to make the 
  "Calculate price" button non-ajaxed. And it does not work; i.e. if I quit 
  the "Calculate price" from the ajaxed zones, then the action is never 
  executed. From my experience, Ajaxanywhere does not work with a 
  page combining ajaxed and non-ajaxed JSF actions.
  2006/2/21, Enrique Medina <[EMAIL PROTECTED] 
  >: 
  Definetively, 
I can't make it work. I've created a simple JSF page with two buttons: 
one is a save for the form and the other just navigates to another page 
(simulating a cancel action). The save button works great, but when I 
press the cancel/exit button, then nothing happens. I've been 
also doing some debugging, and when using Ajaxanywhere, the submit of 
the non-ajaxed button does not update the parameterRequestMap used after 
to decide whether it is an immediate request, etc.No idea of 
what I'm doing wrong Emmanuel can you please help? Can you 
provide some of your JSF pages? What version are you using? Are you 
working with buttons?Thanks. 

2006/2/21, Enrique Medina < 
[EMAIL PROTECTED]>: 
Some 
  more testing...If I remove all the JS I posted before, then 
  the common JSF button works, and obviously my ajaxed zone is ignored 
  and the page is completely refresehd; if I add it again, then the 
  common JSF does not work, and obviously the ajxed zone works great. 
  It's clear the problem comes with the JS and how does 
  Ajaxanywhere handle the request...
  2006/2/21, Enrique Medina < [EMAIL PROTECTED] 
  >: 
  
  Hi 
again,I have tried the solution you proposed about returning 
null for non-ajaxed requests, but I

Re: Ajaxanywhere

2006-02-23 Thread Vitaliy Shevchuk



it IS the other 
way round ;) read carefuly my message 
 
ajaxAnywhere.substituteSubmitButtonsBehavior(true,[ajaxAnywhere.findForm().elements['mainForm:selectBoxBtn']]); 
// <-- arrays of "ajaxed" 
buttons

  - Original Message - 
  From: 
  Enrique 
  Medina 
  To: Vitaliy Shevchuk 
  Cc: MyFaces Discussion ; [EMAIL PROTECTED] ; [EMAIL PROTECTED] ; [EMAIL PROTECTED] ; [EMAIL PROTECTED] ; 
  [EMAIL PROTECTED] 
  
  Sent: Thursday, February 23, 2006 8:38 
  AM
  Subject: Re: Ajaxanywhere
  Hi Vitaliy,Then you mean that buttons that are not 
  Ajaxed must be passed as argument to the substituteSubmitButtonsBehaviour? I 
  though it was the other way round; i.e. arrays of "ajaxed" buttons...
  2006/2/22, Vitaliy Shevchuk <[EMAIL PROTECTED]>:
  
Hi guys,
 
first of all, sorry for not providing a proper 
support on AjaxAnywhere forum. I have been doing it for over 4 months but 
don't have much of free time now.
 
The first solution for your problem is to 
specify a list of Ajaxed buttons when calling 
substituteSubmitButtonsBehavior. So other buttons would stay 
For "all2.jsf" from the DEMO application it 
would look like this : 
    
ajaxAnywhere.substituteSubmitButtonsBehavior(true,[ajaxAnywhere.findForm().elements['mainForm:selectBoxBtn']]);
then, if you add a second command button 

    
it would work without Ajax.
 
some doc is available here http://ajaxanywhere.sourceforge.net/js_docs_out/AjaxAnywhere.html#substituteSubmitButtonsBehavior 
 
Vitaliy.
 
PS. Indeed, there are several bugs discovered 
here and I need to fix them. It should work when returning null from 
getZonesToRefresh(), next release will fix it.
PPS. for the navigation to another page when 
submitting with AA, did you try "redirect" parameter in JSF config? I'm not 
sure but it should work, as response.sendRedirect() is interpreted as 
location.href="" on the client side.


  - 
  Original Message - 
  From: 
  Enrique Medina 
  To: 
  MyFaces 
  Discussion ; [EMAIL PROTECTED] ; 
  [EMAIL PROTECTED] ; [EMAIL PROTECTED] 
  ; [EMAIL PROTECTED] ; [EMAIL PROTECTED] ; [EMAIL PROTECTED] ; [EMAIL PROTECTED] 
  Sent: 
  Tuesday, February 21, 2006 9:45 PM
  Subject: 
  Re: Ajaxanywhere
  And more testing...I have downloaded the DEMO from 
  the Ajaxanywhere site, and made a change on the facesFrame.jsp to make the 
  "Calculate price" button non-ajaxed. And it does not work; i.e. if I quit 
  the "Calculate price" from the ajaxed zones, then the action is never 
  executed. From my experience, Ajaxanywhere does not work with a 
  page combining ajaxed and non-ajaxed JSF actions.
  2006/2/21, Enrique Medina <[EMAIL PROTECTED] 
  >: 
  Definetively, 
I can't make it work. I've created a simple JSF page with two buttons: 
one is a save for the form and the other just navigates to another page 
(simulating a cancel action). The save button works great, but when I 
press the cancel/exit button, then nothing happens. I've been 
also doing some debugging, and when using Ajaxanywhere, the submit of 
the non-ajaxed button does not update the parameterRequestMap used after 
to decide whether it is an immediate request, etc.No idea of 
what I'm doing wrong Emmanuel can you please help? Can you 
provide some of your JSF pages? What version are you using? Are you 
working with buttons?Thanks. 

2006/2/21, Enrique Medina < 
[EMAIL PROTECTED]>: 
Some 
  more testing...If I remove all the JS I posted before, then 
  the common JSF button works, and obviously my ajaxed zone is ignored 
  and the page is completely refresehd; if I add it again, then the 
  common JSF does not work, and obviously the ajxed zone works great. 
  It's clear the problem comes with the JS and how does 
  Ajaxanywhere handle the request...
  2006/2/21, Enrique Medina < [EMAIL PROTECTED] 
  >: 
  
  Hi 
again,I have tried the solution you proposed about returning 
null for non-ajaxed requests, but I can't get it to work :-( 
Here is my JS 
code:ajaxAnywhere.getZonesToReload = function(url, 
submitButton)         
        {    
            
    if (typeof submitButton != 
'undefined')        
            
{            
            if 
(submitButton.type == 'submit')    
            
        {    
            
            if ( 
submitButton.id.search('botonAjax') != -1)    
            
            
{            
   

Re: Picklist problem

2006-02-23 Thread Alin Dosoniu

Hello,

Any chance for this problem to be solved?
I checked it in myfaces-example-sandbox from today and I can reproduce it.

Thank  you,
Alin.


Hi

I've tried the examples which where build with the svn source from 16.02.

the picklist shows the same error. If i select some values and click 
submit the values are shown {Selected values: option4, option3, option2, 
option}.
if i click submit a second time no values are submitted and I have a 
empty right side again {No selected values}.


maybe i fetched a wrong version from svn somehow. I'll try again tomorrow.

regards

stefan


MYFACES-1125

2006-02-23 Thread Alin Dosoniu

Hello,

Can someone to check this jira issue and apply the solution in svn.
If you agree there is a bug and what I proposed is a solution, there are 
only 2 lines that have to be added.


Thanks,
Alin. 


JSCookMenu usage

2006-02-23 Thread Nicklas Karlsson
Hi,  What is the correct usage of JSCookMenu and forms? Can it exist inside a form? And if not, how can it be targetted for a particular formwhen firing a backing bean method?- Nik


ValueBinding HtmlSelectOneMenu -->Curious problem

2006-02-23 Thread andreas.mitter
Title: ValueBinding HtmlSelectOneMenu -->Curious problem






Hi!


I have problems with ValueBindings (the binding attribute) with HtmlSelectOneMenu components.

When I add such a binding to a component and load my page, the value in the HtmlSelectOneMenu is wrong (it's not the value, that was set)...

Can somebody tell me, who I can bind a value to a HtmlSelectOneMenu.


I have done the following:

editDto.getSMsector().setSubmittedValue(test);

editDto.setEdiId(test);


getSMsector is the getter Method of my HtmlSelectOneMenu component.

test is a Long Value.


Do I have to set the value in another way?


My JSP looks like this:



 

h:selectOneMenu>



I hope it's clear what I mean, and I hope somebody can help me...



THX very much!


Regards

Andy



__

Diese Nachricht ist fuer die MAGNA STEYR Fahrzeugtechnik AG & Co KG rechtsunverbindlich!
- This message is not legally binding upon MAGNA STEYR Fahrzeugtechnik AG & Co KG!

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
your system manager.

This footnote also confirms that this email message has been swept
for the presence of computer viruses.
__



tobato t:sheet sorting

2006-02-23 Thread Iryna Stetska

We are using t:sheet component.
We need to implement sortable column in it which would perform sorting
by clicking on the column header, while sorting will be performed on
the server side. (We don't want to use standard tobago sheet sorting
for substantial reason).


Can we have some event handler implemented for clicking the t:sheet
column header?



CSS styles of Tomahawk calendar component

2006-02-23 Thread Matthias Kahlau
Hi!


Does anybody know what's the difference between the "DB" and "WH" CSS styles
of the Tomahawk calendar component?


Regards,

Matthias



Re: Next stable version of sandbox?

2006-02-23 Thread Andrew Robinson
Yeah I know. I don't mind using it as unstable, I just want the core
to be stable. Under 1.1.1, the latest validateCompareTo is looking for
ResourceLoader, and hence stops my project from loading.

The two components I want are validateCompareTo and schedule for now.
>From what others have said, it sounds like schedule is getting close
to becoming part of tomahawk. Tonight I'm going to try to rip the
validate compare to out of myfaces and into my source tree to try to
get it to work against 1.1.1. Hopefully schedule works in the 1.1.1
version (I see the code is in the sandbox.jar for 1.1.1) well.

-Andrew



On 2/23/06, Werner Punz <[EMAIL PROTECTED]> wrote:
> Hi Andrew always have in mind that the sandbox is sort of a Tomahawk
> unstable ...
> anything in there can get a major overhaul between versions and to the
> worse might be pulled.
> (although for most components it is very very unlikely)
>
>
>
> Andrew Robinson schrieb:
> > I have a bit of a dilemma. I would like to have the stability of
> > MyFaces 1.1.1, but I'd like to use some of the new Sandbox components
> > (like validateCompareTo) which are not in the 1.1.1 release and seem
> > to require the newest core of myfaces to work (validateCompareTo was
> > throwing class and method not found errors when I tried using it on
> > myfaces 1.1.1).
> >
> > In the SVN branch, I find I come across many errors. The last one was
> > a bad one. About a week ago t:commandButton tried to treat the
> > "action" property as a ValueBinding instead of a MethodBinding.
> >
> > Any idea on the next scheduled release? (rc or beta would be nice over
> > source control updates).
> >
> > Thanks,
> > Andrew
> >
>
>


Re: ValueChangeEvent - different result dependent on component?

2006-02-23 Thread Philippe Lamote

Very weird:
I did some more tests, and I found out if I have the values printed  
out *after* the  tag, they *are* rendered. (after being  
triggered by the same ValueChangeEvent from the menu in the form)

Could the setup of (schematic)


	The User's data are meant to be rendered inside the below table>


... (non-JSF: pure HTML)

...// user data are not rendered here after ValueChangeEvent:-(


... (non-JSF: pure HTML)


		...// this other part of the user data *are* rendered after  
ValueChangeEvent (??!)



 


... perhaps be the cause of all trouble?

Philippe


On 22 Feb 2006, at 20:16, Philippe Lamote wrote:

Hi,
I've run into weird prob and as I don't see why this happens, I  
thought posting it:
In a page, I have a Select Menu. This fires a ValueChangeEvent to  
retrieve User Data.
So, the user selects a "Person" from the Menu, and this Person's data  
are subsequently rendered below this Menu.

The strange thing is:
Of all the inputText fields (like "currentUser.firstName"), none is  
rendered. (all of them are inside the panelGrid)
However, the correct person is identified. I see that in the logging  
of the return value and : The user data inside "Menu Lists" (like the  
current Person's "userRolls" ) *are* correctly rendered.


--> ?? How come inputText values are not retrieved, and values in the  
Menu are??


This is the code:
(to select a certain user, which triggers the Event)
	title="#{labels.usrMgt_userChooserHelp}" valueChangeListener="# 
{managerbean.chooseUserTrigger}" disabled="# 
{managerbean.usersdisabled }" onchange="submit()" value="choose_one" >
   		itemValue="choose_one"/>



...


(the panel with textInputs that DON'T render the user data:)
cellpadding="2" align="center" columnClasses="labelKolom,inhoudKolom"  
rowClasses="even,oneven">


   			readonly="#{managerbean.editableFieldMode}"/>

...






(& the panel with data that do get rendered with the user data:)
	readonly="#{managerbean.editableFieldMode}" >
   			itemValue="choose_one"/>





The code for chooseUserTrigger, in the backing bean (managerbean) is

public void chooseUserTrigger(ValueChangeEvent event){

String gekozenUser= event.getNewValue().toString();
logger.error("The Chosen User, is "+ gekozenUser);
setCurrentUser(getAppMgr().getUsers().get(gekozenUser));

}

Person currentUser is a local var of the backing bean, featuring vars  
like firstName (String, ... ), rolls (TreeMap),…  nothing special there.
Again, I see from the logging the correct user has been passed to the  
serverside, but only the data in the InputText fields doesn't seem to  
be retrieved.

Has anyone else had similar experiences?

(Ps The only -non relevant, just mentioning it anyway- difference I  
see, is that "firstName" etc is indirectly referenced, via the bean's  
local var "currentUser.firstName". Whereas for the rolls, in the  
bean, there is a method getUserRolls(), which is a mere pointer to  
this same local variable (in casu: it returns getCurrentUser 
().getRollKeys(); )
This is not relevant and just to make sure it isn't, I did the same  
for firstName (i.e. make a dedicated bean method doing  
getCurrentUser.getFirstName(), but this had no effect...


Philippe




multi validation in ADF Faces

2006-02-23 Thread James Moores



Hi 
Everyone,
 
I'm having some 
problems with form validation in ADF.  I have a form with multiple sections 
that need to be validated separately - the reason is that some commandButtons do 
things like add a selection to a list that is built up as the form is filled out 
(e.g. a list of key-value properties where you can add a new key value pair or 
delete existing ones in the list).  In those cases I don't want the main 
form validation to happen and block submission.  For a while I was using 
buttons with immediate="true", but that means that the values that you are 
interested in don't get written into their backing beans before your action 
method is called.  Now I was getting around this by binding the control to 
a backing bean and getting the value directly from the control object.  But 
I thought that was a bit horrible - additionally if the field I need is a Choice 
box then I can only get the index of the selected item and have to look it up 
all over again.  That works, but I wanted to find a better way.  I 
thought I had when I (again) tried using .  I'm trying to 
do this (I've simplified it):
 

  

    

   
   
      

    
  
  
  
  
    

  
    


    

  
    

    

  
    
    
    

  
    

  
  
   
 
    


    

  

  
  

    

  


 
which all works 
great except that anything sitting in the input fields of the subforms other 
than the one submitted is wiped.  The wierd thing is that the fields in the 
other (non default=true) subforms stay populated.  The reason I thought 
this would work is the docs:
 
A UIXSubform will always allow 
the "Apply Request Values" phase to execute for its children, even when not 
"submitted", but when not "submitted", the "Process Validations" and "Update 
Model Values" phases will be skipped. This differs from an ordinary form 
component, which, when not submitted, does not (and cannot) run "Apply Request 
Values" either.

UIXSubform and "default"
In some scenarios, there may be buttons (or other components that submit the 
page) outside of the main content of a page. If this main content is in a 
UIXSubform, it could not be fully processed whenever those buttons are clicked, 
since those buttons aren't inside of the UIXSubform. To support this scenario, 
ADF Faces supports a "default" property on UIXSubform. A "default" subform 
behaves like any other subform in most respects, but if no subforms are 
"submitted" - if no subform has an appropriate event come from its children - 
then all "default" subforms act as if they are "submitted". 
The first paragraph 
seems to imply that just the Apply Request Values phase will be executed for the 
'unsubmitted' subforms, but shouldn't this be enough to maintain their values on 
the page? Am I missing something?
Anyone any 
ideas?
 
Jim
--
Jim 
Moores


Re: ValueChangeEvent - different result dependent on component?

2006-02-23 Thread Philippe Lamote

Problem is solved this way:
I made 2 
One with only the menu for using a User, firing off a ValueChangeEvent,
The other with the actual (chosen in form1) User Data rendered.
But it should have worked with just one form too!
Starting to hate JSF for not working as you would expect ... (-as it  
should)

Philippe

On 23 Feb 2006, at 15:26, Philippe Lamote wrote:

Very weird:
I did some more tests, and I found out if I have the values printed  
out *after* the  tag, they *are* rendered. (after being  
triggered by the same ValueChangeEvent from the menu in the form)

Could the setup of (schematic)


	The User's data are meant to be rendered inside the below table>


... (non-JSF: pure HTML)

...// user data are not rendered here after ValueChangeEvent:-(


... (non-JSF: pure HTML)


		...// this other part of the user data *are* rendered after  
ValueChangeEvent (??!)



 


... perhaps be the cause of all trouble?

Philippe


On 22 Feb 2006, at 20:16, Philippe Lamote wrote:

Hi,
I've run into weird prob and as I don't see why this happens, I  
thought posting it:
In a page, I have a Select Menu. This fires a ValueChangeEvent to  
retrieve User Data.
So, the user selects a "Person" from the Menu, and this Person's data  
are subsequently rendered below this Menu.

The strange thing is:
Of all the inputText fields (like "currentUser.firstName"), none is  
rendered. (all of them are inside the panelGrid)
However, the correct person is identified. I see that in the logging  
of the return value and : The user data inside "Menu Lists" (like the  
current Person's "userRolls" ) *are* correctly rendered.


--> ?? How come inputText values are not retrieved, and values in the  
Menu are??


This is the code:
(to select a certain user, which triggers the Event)
	title="#{labels.usrMgt_userChooserHelp}" valueChangeListener="# 
{managerbean.chooseUserTrigger}" disabled="# 
{managerbean.usersdisabled }" onchange="submit()" value="choose_one" >
   		itemValue="choose_one"/>



...


(the panel with textInputs that DON'T render the user data:)
cellpadding="2" align="center" columnClasses="labelKolom,inhoudKolom"  
rowClasses="even,oneven">


   			readonly="#{managerbean.editableFieldMode}"/>

...






(& the panel with data that do get rendered with the user data:)
	readonly="#{managerbean.editableFieldMode}" >
   			itemValue="choose_one"/>





The code for chooseUserTrigger, in the backing bean (managerbean) is

public void chooseUserTrigger(ValueChangeEvent event){

String gekozenUser= event.getNewValue().toString();
logger.error("The Chosen User, is "+ gekozenUser);
setCurrentUser(getAppMgr().getUsers().get(gekozenUser));

}

Person currentUser is a local var of the backing bean, featuring vars  
like firstName (String, ... ), rolls (TreeMap),…  nothing special there.
Again, I see from the logging the correct user has been passed to the  
serverside, but only the data in the InputText fields doesn't seem to  
be retrieved.

Has anyone else had similar experiences?

(Ps The only -non relevant, just mentioning it anyway- difference I  
see, is that "firstName" etc is indirectly referenced, via the bean's  
local var "currentUser.firstName". Whereas for the rolls, in the  
bean, there is a method getUserRolls(), which is a mere pointer to  
this same local variable (in casu: it returns getCurrentUser 
().getRollKeys(); )
This is not relevant and just to make sure it isn't, I did the same  
for firstName (i.e. make a dedicated bean method doing  
getCurrentUser.getFirstName(), but this had no effect...


Philippe





Re: Simple progress bar

2006-02-23 Thread Richard Wallace

Arshad Ali wrote:
You can use animated gif for that, just put animated gif in a  
tag, and set visible true / false according to the action


--
Syed Arshad Ali 
That's a little too simple for what I need.  I still need the progress 
bar to be able to check the server to see when the transaction is done 
processing.  I don't want to leave the user hanging for 30 seconds if 
the transaction only takes 5 to process.  The existing progress bars are 
good, the only problem I have with them is that they seem to only 
display percent done and don't have the ability to display work being 
done on an process that can't be known.  Then again, maybe the best 
thing to do is to put the range from 1 to whatever the payment gateway 
timeout is and do it that way.


Rich


Re: Dealing with exceptions in getters

2006-02-23 Thread Michel Goldstein
I tried that and it still called the getter the second time, causing the same exception.On 2/22/06, Laurie Harper <
[EMAIL PROTECTED]> wrote:Michel Goldstein wrote:> Hi,>> I have a very basic use case in which I need to access an external service
> on a getter. However, this access might fail and cause an exception. When> the exception happens, I would like to redirect the user to an error page> that would explain that the service is unavailable and do not allow the user
> to access that functionality until the service comes back up (so I can't> really just add to a message and render the message using the > tag).>> My first approach was in the lines of:
>> public TreeNode getData() {> log.debug("Called getData");> try {> return resource.getDataAsTreeNode();> } catch (Exception e) {> log.error
("Cannot access resource!");> getUserMessages().addMessage("Cannot access a required resource.> Your access will be limited until the resource is available again.");> FacesContext ctx = 
FacesContext.getCurrentInstance();> ctx.getApplication> ().getNavigationHandler().handleNavigation(ctx,"","error");> return null;> }> }>
> However, the problem is that the getter is being called twice during the> page processing and on the second time it throws an exception claiming that> the state is invalid during redirect. By the way, the error page navigation
> rule in faces-config.xml uses the  directive mostly to change the> URL on the browser so that the user can see that it is an error page.>> My question then is a little bit more basic than this: what it looks like to
> me is that I'm using the wrong pattern here to deal with exceptions. What> should be the right pattern?Add ctx.renderResponse() at the end of your exception handling code.That'll tell JSF to jump straight to rendering the response when the
current phase ends. I think that'll do the trick.L.>> Thank you,> Michel>> Just for completeness sake, here is the stack trace of the error:>> 2006-02-22 13:01:10,485 44493 ERROR [TP-Processor3] [/ptd].[jsp] -
> Servlet.service() for servlet jsp threw exception> javax.faces.el.EvaluationException: Cannot get value for _expression_ '#{> test.data}'> at org.apache.myfaces.el.ValueBindingImpl.getValue
(> ValueBindingImpl.java:402)> at org.apache.myfaces.custom.tree2.UITreeData.getValue(> UITreeData.java:264)> at org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeChildren(
> HtmlTreeRenderer.java:173)> at javax.faces.component.UIComponentBase.encodeChildren(> UIComponentBase.java:527)> at javax.faces.webapp.UIComponentTag.encodeChildren(> UIComponentTag.java
:474)> at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java> :361)> at org.apache.jsp.exportViewResults_jsp._jspx_meth_t_tree2_0(> org.apache.jsp.exportViewResults_jsp:381
)> at org.apache.jsp.exportViewResults_jsp._jspx_meth_f_view_0(> org.apache.jsp.exportViewResults_jsp:176)> at org.apache.jsp.exportViewResults_jsp._jspService(> org.apache.jsp.exportViewResults_jsp:100
)> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java> :97)> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)> at org.apache.jasper.servlet.JspServletWrapper.service
(> JspServletWrapper.java:322)> at org.apache.jasper.servlet.JspServlet.serviceJspFile(> JspServlet.java:291)> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)> 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
:416)> at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(> JspViewHandlerImpl.java:234)> at org.jenia.faces.template.handler.ViewHandler.renderView(> ViewHandler.java
:74)> at org.apache.myfaces.lifecycle.LifecycleImpl.render(> LifecycleImpl.java:372)> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(> ApplicationFilterChain.java:252)> at org.apache.catalina.core.ApplicationFilterChain.doFilter(> ApplicationFilterChain.java:173)> at org.apache.myfaces.component.html.util.ExtensionsFi

Fwd: panelTabbedPane serverSideTabSwitch

2006-02-23 Thread Mike Kienenberger
Forwarding to MyFaces users list.

-- Forwarded message --
From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Feb 23, 2006 1:27 AM
Subject: panelTabbedPane serverSideTabSwitch
To: [EMAIL PROTECTED]



Hi Mike,

When I use serverSideTabSwitch, i get exception that the attribute is
invalid according to TLD. Could you please let me give some some tips.

Thanks.

Sincerely,

 Raihan Kibria
 Sr. Software Engineer
 TechnoVista Limited
 Lotus Kamal Tower - One, Level - 9, 57 Zoar Shahara C/A,
 Nikunja - 2 (North)
 Dhaka - 1229, Bangladesh
 Phone: +880 2 895 2704-9
 Email: [EMAIL PROTECTED]


Two render kits? (MyFaces + ADF)

2006-02-23 Thread Adam Brod

Hi-

I noticed that ADF Faces "overrides"
the default MyFaces render kit for all html/core components.  For
example,  renders differently with ADF Faces -
it won't create a default dummy for the way MyFaces will.

Can I have two renderkits?  Basically, I want ADF Faces to render
all components where I use an  tag, but MyFaces for h: and
f: tags.  I realize I could get into trouble if I mix and match on
the same page, so I'll avoid that.

Thanks for any help!

Adam Brod
Product Development Team


AW: Two render kits? (MyFaces + ADF)

2006-02-23 Thread Luo. Haihua








Hi,

 

you can try to map
different TLD respectively for ADF and Myfaces in web.xml.

 

cheers,

 

Haihua

 









Von: Adam Brod
[mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 23. Februar
2006 16:49
An: MyFaces User mailing list
Betreff: [[**SPAM**]] - Two render
kits? (MyFaces + ADF) - Sender is forged (SPF Fail)



 


Hi- 

I
noticed that ADF Faces "overrides" the default MyFaces render kit for
all html/core components.  For example,  renders
differently with ADF Faces - it won't create a default dummy for the way
MyFaces will. 

Can I have two renderkits?  Basically, I want ADF Faces to render all
components where I use an  tag, but MyFaces for h: and f: tags.  I
realize I could get into trouble if I mix and match on the same page, so I'll
avoid that. 

Thanks
for any help!

Adam Brod
Product Development Team








Re: ValueBinding HtmlSelectOneMenu -->Curious problem

2006-02-23 Thread Mike Kienenberger
Andy,

The submitted value should be a String.   This is the unconverted value.

-Mike


On 2/23/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> Hi!
>
> I have problems with ValueBindings (the binding attribute) with
> HtmlSelectOneMenu components.
> When I add such a binding to a component and load my page, the value in the
> HtmlSelectOneMenu is wrong (it's not the value, that was set)...
>
> Can somebody tell me, who I can bind a value to a HtmlSelectOneMenu.
>
> I have done the following:
> editDto.getSMsector().setSubmittedValue(test);
> editDto.setEdiId(test);
>
> getSMsector is the getter Method of my HtmlSelectOneMenu component.
> test is a Long Value.
>
> Do I have to set the value in another way?
>
> My JSP looks like this:
>  styleClass="mustfield" value="#{editDto.ediId}" required="true">
>
>  
> 
>
>
> I hope it's clear what I mean, and I hope somebody can help me...
>
>
> THX very much!
>
> Regards
> Andy
> __
> Diese Nachricht ist fuer die MAGNA STEYR Fahrzeugtechnik AG & Co KG
> rechtsunverbindlich! - This message is not legally binding upon MAGNA STEYR
> Fahrzeugtechnik AG & Co KG! This email and any files transmitted with it are
> confidential and intended solely for the use of the individual or entity to
> whom they are addressed. If you have received this email in error please
> notify your system manager. This footnote also confirms that this email
> message has been swept for the presence of computer viruses.
> __
>


Re: myfaces tree2 delete node

2006-02-23 Thread Hendrik Neumann
Well I'm sorry, but I think that the problem descriped was not a bug -
the problem was related with my "populateTree"-Method which did some
"really ugly things".

At least the "Node is expanded but it is also considered a leaf" is
gone and not reproducible for me.

Nevertheless, thank you for your helpfulness!

2006/2/22, Sean Schofield <[EMAIL PROTECTED]>:
> I am happy to try and help out but I need a little more investigation
> from you guys.  You will need to investigate the latest source code
> and let me know where things are breaking down.  Unfortunately there
> are some issues getting the new release done that are taking up most
> of my time.
>
> So if you are serious about fixing this, please dig in and provide an
> explanation as to where exactly things are failing (in the code iself)
> instead of just describing the usecase.  If you do this, I can likely
> help you better.  Keep in mind I'm not doing any dynamic tree stuff
> myself (yet) so you will need to help me help you.
>
> Sean
>
> On 2/22/06, Hendrik Neumann <[EMAIL PROTECTED]> wrote:
> > I have the same problem... this issue still seems not to be fixed
> >
> > 2006/2/8, Michal <[EMAIL PROTECTED]>:
> > > I've got the same problem - I believe that's the problem of storing old 
> > > tree
> > > somewhere (as it's client side toggle tree). Is there any way to update 
> > > it?
> > > Some flush cache method's ;) or something? I really stuck with this, tried
> > > almost all.
> > >
> > >
> >
> >
> > --
> > Mit freundlichen Grüßen / Greetings,
> > Hendrik Neumann; Ruhr-University of Bochum
> >
>


--
Mit freundlichen Grüßen / Greetings,
Hendrik Neumann; Ruhr-University of Bochum


Re: FacesContext fc = FacesContext.getCurrentInstance();

2006-02-23 Thread Vladimir Coutinho
I need to get a reference to a the Session to read a value in a user variable.
In jsf I use:
 (HttpSession) FacesContext.getCurrentInstance().getExternalContext().getSession(false);
 
Works well, but when the url is not jsf, it doesn't work. There is some way to get a reference to the session in a bean? I'm calling this bean from AJAX code. 
On 2/22/06, Craig McClanahan <[EMAIL PROTECTED]> wrote:

On 2/22/06, Vladimir Coutinho <
[EMAIL PROTECTED]> wrote: 

Could I access faces context from a non jsf class? (a bean used with AJAX)
 
 
FacesContext fc = FacesContext.getCurrentInstance();
You can do this from any class ... but it will only return a useful result in the context of a request that is actually being handled by JavaServer Faces (i.e. one whose URL matches the URL mapping for FacesServlet) -- or if you are following the outline in the spec for turning a non-Faces Request into a Faces Response.
 

-- Vladimir M Coutinho Craig-- Vladimir M Coutinho 


Re: FacesContext fc = FacesContext.getCurrentInstance();

2006-02-23 Thread Craig McClanahan
On 2/23/06, Vladimir Coutinho <[EMAIL PROTECTED]> wrote:
I need to get a reference to a the Session to read a value in a user variable.
In jsf I use:
 (HttpSession) FacesContext.getCurrentInstance().getExternalContext().getSession(false);
 
Works well, but when the url is not jsf, it doesn't work. There is
some way to get a reference to the session in a bean? I'm calling this
bean from AJAX code.
If you are not in a faces request, then you need to go back to the
tried and true mechanisms of the servlet API ... but this will require
you to have access to the HttpServletRequest instance for the AJAX
request, which means you will need to take that into account when
defining your APIs.

A completely different approach to this problem is to make sure all
your AJAX requests are actually Faces requests.  Shale's
"Remoting" feature has some logic that can make that pretty easy,
including a mechanism that can translate a context-relative URL like
("/dynamic/foo/bar.faces") into the evaluation of a method binding
expresion "#{foo.bar}" that will produce the AJAX response.  It's
not documented particularly well yet, but this code arose out of my
having a similar need (although, in my case, it was more driven by the
desire to be able to use managed beanas than anything else).

Craig



AW: Two render kits? (MyFaces + ADF)

2006-02-23 Thread Fernando Madruga Pinheiro

How do I do that? I'm facing the same problems today!-- 


  
Fernando Madruga Pinheiro
  
  
Analista de Sistemas
  
  
 WMix Distribuidora Ltda
  
  
Fone/Fax: +55 (48) 3035-9734 
  

Esta
mensagem foi enviada pela Wmix Distribuidora Ltda, para uso exclusivo
do destinatário, podendo conter informações confidenciais. Se for
recebida por terceiro que não o destinatário, deve ser apagada
imediatamente do seu computador e a Wmix Distribuidora Ltda notificada
([EMAIL PROTECTED]). As informações aqui prestadas não podem
ser distribuídas ou reproduzidas sem a expressa autorização da Wmix
Distribuidora Ltda.-Mensagem Original-De: "Luo. Haihua" <[EMAIL PROTECTED]>Enviado em: Thursday, 23. Feb 2006 13:09 -0300Para: "MyFaces Discussion" Assunto: AW: Two render kits? (MyFaces + ADF)











Hi,

 

you can try to map
different TLD respectively for ADF and Myfaces in web.xml.

 

cheers,

 

Haihua

 









Von: Adam Brod
[mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 23. Februar
2006 16:49
An: MyFaces User mailing list
Betreff: [[**SPAM**]] - Two render
kits? (MyFaces + ADF) - Sender is forged (SPF Fail)



 


Hi- 

I
noticed that ADF Faces "overrides" the default MyFaces render kit for
all html/core components.  For example,  renders
differently with ADF Faces - it won't create a default dummy for the way
MyFaces will. 

Can I have two renderkits?  Basically, I want ADF Faces to render all
components where I use an  tag, but MyFaces for h: and f: tags.  I
realize I could get into trouble if I mix and match on the same page, so I'll
avoid that. 

Thanks
for any help!

Adam Brod
Product Development Team





Collapsible Panel

2006-02-23 Thread Hasnain Badami
Hi
 
Please correct me if I am wrong. When a collapsible panel is used in a dataTable then when the panel is expanded it expands in the same row causing the height of that row to increase. Is it possible that when a collapsible panel is expanded its contents are expanded to the next rows of the table (if 2 hidden contents then next 2 rows) rather than expanding in the same row.

 
Any help shall be highly appreciated.
 
 
 


RE: [JSF] Tiles and Reusable Template

2006-02-23 Thread Garner, Shawn
I looked at Clay and it looks like it will work but I want to examine
facelets more first.

The facelets tutorial says it does easy templating but there were no
examples on how to do it and I couldn't find one in the documentation.
Is there an example of this somewhere?


Shawn
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper
Sent: Wednesday, February 22, 2006 6:44 PM
To: users@myfaces.apache.org
Subject: Re: [JSF] Tiles and Reusable Template

Garner, Shawn wrote:
> I tried using tiles with JSF and found it does not work very well.
> 
> You end up having to define every page in the tiles.xml file that you want
> to use the template for.
> 
> Are there any other approaches to creating a reusable template that uses
> multiple jsp pages?
> 
> Seems like I should be able to just include a page and override the body,
> title portion without redefining the template for every page.

You may be able to do what you want with Tiles using the JSP tags 
instead of the XML file. Alternatively, take a look at Facelets or Shale 
Clay.

L.

 
This email may contain confidential material. 
If you were not an intended recipient, 
Please notify the sender and delete all copies. 
We may monitor email to and from our network. 



Re: multi validation in ADF Faces

2006-02-23 Thread Martin Marinschek
Well, they should retain their values.

The only option I can imagine where they would loose their values is
if your action executes and causes a new view to be built. Is that the
case for your setup?

regards,

Martin

On 2/23/06, James Moores <[EMAIL PROTECTED]> wrote:
>
> Hi Everyone,
>
> I'm having some problems with form validation in ADF.  I have a form with
> multiple sections that need to be validated separately - the reason is that
> some commandButtons do things like add a selection to a list that is built
> up as the form is filled out (e.g. a list of key-value properties where you
> can add a new key value pair or delete existing ones in the list).  In those
> cases I don't want the main form validation to happen and block submission.
> For a while I was using buttons with immediate="true", but that means that
> the values that you are interested in don't get written into their backing
> beans before your action method is called.  Now I was getting around this by
> binding the control to a backing bean and getting the value directly from
> the control object.  But I thought that was a bit horrible - additionally if
> the field I need is a Choice box then I can only get the index of the
> selected item and have to look it up all over again.  That works, but I
> wanted to find a better way.  I thought I had when I (again) tried using
> .  I'm trying to do this (I've simplified it):
>
> 
>   
> 
> 
> 
> 
>   
>   
>   
> 
>
>
> 
>
> 
>   
> 
> 
> 
>   
> 
>   
>   
> 
> 
>
> 
>   
>   
>   
> 
>   
> 
>
> which all works great except that anything sitting in the input fields of
> the subforms other than the one submitted is wiped.  The wierd thing is that
> the fields in the other (non default=true) subforms stay populated.  The
> reason I thought this would work is the docs:
>
> A UIXSubform will always allow the "Apply Request Values" phase to execute
> for its children, even when not "submitted", but when not "submitted", the
> "Process Validations" and "Update Model Values" phases will be skipped. This
> differs from an ordinary form component, which, when not submitted, does not
> (and cannot) run "Apply Request Values" either.
>
> UIXSubform and "default"
>
> In some scenarios, there may be buttons (or other components that submit the
> page) outside of the main content of a page. If this main content is in a
> UIXSubform, it could not be fully processed whenever those buttons are
> clicked, since those buttons aren't inside of the UIXSubform. To support
> this scenario, ADF Faces supports a "default" property on UIXSubform. A
> "default" subform behaves like any other subform in most respects, but if no
> subforms are "submitted" - if no subform has an appropriate event come from
> its children - then all "default" subforms act as if they are "submitted".
>
> The first paragraph seems to imply that just the Apply Request Values phase
> will be executed for the 'unsubmitted' subforms, but shouldn't this be
> enough to maintain their values on the page? Am I missing something?
> Anyone any ideas?
>
> Jim
> --
> Jim Moores


--

http://www.irian.at

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

Professional Support for Apache MyFaces


Re: tobato t:sheet sorting

2006-02-23 Thread Volker Weber
Hi Iryna,

Iryna Stetska wrote:
> We are using t:sheet component.
> We need to implement sortable column in it which would perform sorting
> by clicking on the column header, while sorting will be performed on
> the server side. (We don't want to use standard tobago sheet sorting
> for substantial reason).
> 
> 
> Can we have some event handler implemented for clicking the t:sheet
> column header?

sorry, no. There is currently no such thing.

Bernd and i had talked about change the sorting to an eventListener
approach. But IMO there is nothing concrete done yet.


Regards,
  Volker

-- 
Don't answer to From: address!
Mail to this account are droped if not recieved via mailinglist.
To contact me direct create the mail address by
concatenating my forename to my senders domain.


RE: [JSF] Tiles and Reusable Template

2006-02-23 Thread Adam Brod

https://facelets.dev.java.net/nonav/docs/dev/docbook.html#template

Adam Brod
Product Development Team




"Garner, Shawn"
<[EMAIL PROTECTED]> 
02/23/2006 01:50 PM



Please respond to
"MyFaces Discussion" 





To
'MyFaces Discussion' 


cc



Subject
RE: [JSF] Tiles and Reusable
Template








I looked at Clay and it looks like it will work but
I want to examine
facelets more first.

The facelets tutorial says it does easy templating but there were no
examples on how to do it and I couldn't find one in the documentation.
Is there an example of this somewhere?


Shawn
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper
Sent: Wednesday, February 22, 2006 6:44 PM
To: users@myfaces.apache.org
Subject: Re: [JSF] Tiles and Reusable Template

Garner, Shawn wrote:
> I tried using tiles with JSF and found it does not work very well.
> 
> You end up having to define every page in the tiles.xml file that
you want
> to use the template for.
> 
> Are there any other approaches to creating a reusable template that
uses
> multiple jsp pages?
> 
> Seems like I should be able to just include a page and override the
body,
> title portion without redefining the template for every page.

You may be able to do what you want with Tiles using the JSP tags 
instead of the XML file. Alternatively, take a look at Facelets or Shale

Clay.

L.



This email may contain confidential material. 
If you were not an intended recipient, 
Please notify the sender and delete all copies. 
We may monitor email to and from our network. 



ADF installation setup: tld, jars and web.xml woes

2006-02-23 Thread Philippe Lamote

Hi

As I don't info any specific info on Oracle's site, nor on the  
MyFaces site (for the moment at least), some questions here, I hope  
some people managed to get this working already!


1/ If you use ADF Faces, what taglibs do you need to declare in the  
web.xml?

The JSF ones only (= JSF f/h), only the Oracles ones (af/afh), or both?

I had just this:
 
 
  http://java.sun.com/jsf/core
  
/WEB-INF/tlds/jsf_core.tld


 
 
   http://java.sun.com/jsf/html
   
/WEB-INF/tlds/html_basic.tld
 

 & in my pages this:

http://java.sun.com/JSP/Page"; version="2.0"
xmlns="http://www.w3.org/1999/xhtml";  
xmlns:f= "http://java.sun.com/jsf/core";
xmlns:h="http://java.sun.com/jsf/html";
xmlns:afh="http://xmlns.oracle.com/adf/faces/html";
xmlns:af="http://xmlns.oracle.com/adf/faces";>
  ...

but then I get an exception:"Could not add one or more tag libraries."
What should I change?

2/ What libraries need to be in WEB-INF/lib?
The Oracle site says 'dependencies are JSF & some adfshare.lib'.  
Elsewhere I reed this last sharelib is no longer required.

Does this mean the jsf-api & jsf-impl -.jars need to be added?

3/ What tlds need to be added? Do the oracle api/impl-jars include  
the JSF h/f *taglibs* as well?
I read somewhere they include the af- & afh- taglibs in their jars so  
no need to 1/ explicitely declare them in the web.xml and 2/ add them  
to WEB-INF.

Is this correct & the same for the jsf f/h taglibs?

Bye & thx,
Philippe






RE: ADF installation setup: tld, jars and web.xml woes

2006-02-23 Thread Frank Felix Debatin
Hi Philippe,

here is what works for me. Essentially I followed the setup of the
adf-demo.war. 

>>>
1/ If you use ADF Faces, what taglibs do you need to declare in the web.xml?
The JSF ones only (= JSF f/h), only the Oracles ones (af/afh), or both?
<<<

All four.

>>>
2/ What libraries need to be in WEB-INF/lib?
The Oracle site says 'dependencies are JSF & some adfshare.lib'.  
Elsewhere I reed this last sharelib is no longer required.
Does this mean the jsf-api & jsf-impl -.jars need to be added?
<<<

All of them. For me, it didn't work without the adfshare.jar. 

>>>
3/ What tlds need to be added? Do the oracle api/impl-jars include the JSF
h/f *taglibs* as well?
I read somewhere they include the af- & afh- taglibs in their jars so no
need to 1/ explicitely declare them in the web.xml and 2/ add them to
WEB-INF.
Is this correct & the same for the jsf f/h taglibs?
<<<

They are included in the jars, but I did not manage to configure it right to
let them be found automatically. So I put them next to the web.xml. 

The above works, but I'm not glad with it, because some stuff shouldn't be
necessary.

Frank Felix



-Original Message-
From: Philippe Lamote [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 23, 2006 9:06 PM
To: MyFaces Discussion
Subject: ADF installation setup: tld, jars and web.xml woes

Hi

As I don't info any specific info on Oracle's site, nor on the MyFaces site
(for the moment at least), some questions here, I hope some people managed
to get this working already!

1/ If you use ADF Faces, what taglibs do you need to declare in the web.xml?
The JSF ones only (= JSF f/h), only the Oracles ones (af/afh), or both?

I had just this:
 
 
 
http://java.sun.com/jsf/core
 
/WEB-INF/tlds/jsf_core.tld


 
 
   http://java.sun.com/jsf/html
 
/WEB-INF/tlds/html_basic.tld
   

  & in my pages this:

http://java.sun.com/JSP/Page"; version="2.0"
xmlns="http://www.w3.org/1999/xhtml";
xmlns:f= "http://java.sun.com/jsf/core";
xmlns:h="http://java.sun.com/jsf/html";
xmlns:afh="http://xmlns.oracle.com/adf/faces/html";
xmlns:af="http://xmlns.oracle.com/adf/faces";>
   ...

but then I get an exception:"Could not add one or more tag libraries."
What should I change?

2/ What libraries need to be in WEB-INF/lib?
The Oracle site says 'dependencies are JSF & some adfshare.lib'.  
Elsewhere I reed this last sharelib is no longer required.
Does this mean the jsf-api & jsf-impl -.jars need to be added?

3/ What tlds need to be added? Do the oracle api/impl-jars include the JSF
h/f *taglibs* as well?
I read somewhere they include the af- & afh- taglibs in their jars so no
need to 1/ explicitely declare them in the web.xml and 2/ add them to
WEB-INF.
Is this correct & the same for the jsf f/h taglibs?

Bye & thx,
Philippe







Re: Ajaxanywhere

2006-02-23 Thread Enrique Medina
Finally I solved all my problems ;-)Thinks to take into account:1) Return null should work (see the thread) --> For me it wasn't working due to a side-effect problem. If it doesn't then use an array to define buttons that must be ajaxed (see thread)
2) VERY IMPORTANT --> Define the AAFilter as being the first filter in your chain --> This was the cause of all my problems with NULL pointer exception --> At least it MUST be the first one when another ServletResponse wrapper is in the game (as was happening with the ExtensionsFilter response wrapper)
3) If you're using Firefox, download the script debugger to see what's happening with JS behind the scenes ;-) You will find lots of interesting stuff, like preprocessors to the Ajax request, for example ;-)4) Don't use redirect in the navigation rules, or the Ajax request will be simply bypassed
Hope it helps to clarify the use of Ajaxanywhere with Myfaces.Thanks to anyone that has given me any kind of support with this issue, and thanks very much to guys like Vitaliy for giving us tools like this fantastic Ajaxanywhere :-)
2006/2/23, Enrique Medina <[EMAIL PROTECTED]>:
Sorry, you were right...I've tried it and it works great, but there are some cases where I get a NullPointerException when clicking the ajaxed button. But then I click it again, and it works!!! Debugging through your code, I see that when the cause why the exception is thrown is due to a call to the internal writer object of your BufferedResponseWrapper class, which is null. But it is not null for the second request on the same button... I'm missing something...
By the way, using your proposal, should I continue using the ajaxAnywhere.getZonesToReload?
Thanks very much for your support ;-)2006/2/23, Vitaliy Shevchuk <

[EMAIL PROTECTED]>:







it IS the other 
way round ;) read carefuly my message 
 
ajaxAnywhere.substituteSubmitButtonsBehavior(true,[ajaxAnywhere.findForm().elements['mainForm:selectBoxBtn']]); 
// <-- arrays of "ajaxed" 
buttons

  - Original Message - 
  

From: 
  Enrique 
  Medina 
  To: 

Vitaliy Shevchuk 
  Cc: 

MyFaces Discussion ; [EMAIL PROTECTED] ; 

[EMAIL PROTECTED] ; [EMAIL PROTECTED] ; 

[EMAIL PROTECTED] ; 
  [EMAIL PROTECTED] 
  
  Sent: Thursday, February 23, 2006 8:38 
  AM
  Subject: Re: Ajaxanywhere


  Hi Vitaliy,Then you mean that buttons that are not 
  Ajaxed must be passed as argument to the substituteSubmitButtonsBehaviour? I 
  though it was the other way round; i.e. arrays of "ajaxed" buttons...
  2006/2/22, Vitaliy Shevchuk <[EMAIL PROTECTED]>:


  
Hi guys,
 
first of all, sorry for not providing a proper 
support on AjaxAnywhere forum. I have been doing it for over 4 months but 
don't have much of free time now.
 
The first solution for your problem is to 
specify a list of Ajaxed buttons when calling 
substituteSubmitButtonsBehavior. So other buttons would stay 
For "all2.jsf" from the DEMO application it 
would look like this : 
    
ajaxAnywhere.substituteSubmitButtonsBehavior(true,[ajaxAnywhere.findForm().elements['mainForm:selectBoxBtn']]);
then, if you add a second command button 

    
it would work without Ajax.
 
some doc is available here 

http://ajaxanywhere.sourceforge.net/js_docs_out/AjaxAnywhere.html#substituteSubmitButtonsBehavior 
 
Vitaliy.
 
PS. Indeed, there are several bugs discovered 
here and I need to fix them. It should work when returning null from 
getZonesToRefresh(), next release will fix it.
PPS. for the navigation to another page when 
submitting with AA, did you try "redirect" parameter in JSF config? I'm not 
sure but it should work, as response.sendRedirect() is interpreted as 
location.href="" on the client side.


  - 
  Original Message - 
  

From: 
  Enrique Medina 
  To: 
  MyFaces 
  Discussion ; [EMAIL PROTECTED] ; 
  [EMAIL PROTECTED] ; 

[EMAIL PROTECTED] 
  ; [EMAIL PROTECTED] ; 

[EMAIL PROTECTED] ; [EMAIL PROTECTED]

 ; [EMAIL PROTECTED] 
  Sent: 
  Tuesday, February 21, 2006 9:45 PM
  Subject: 
  Re: Ajaxanywhere
  And more testing...I have downloaded the DEMO from 
  the Ajaxanywhere site, and made a change on the facesFrame.jsp to make the 
  "Calculate price" button non-ajaxed. And it does not work; i.e. if I quit 
  the "Calculate price" from the ajaxed zones, then the action is never 
  executed. From my experience, Ajaxanywhere does not work with a 
  page combining ajaxed and non-ajaxed JSF actions.
  2006/2/21, Enrique Medina <[EMAIL PROTECTED] 
  >: 
  Definetively, 
I can't make it work. I've created a simple JSF page with two buttons: 
one is a save for the form and the other just navigates to another page 
(simulating a cancel action). The save button works great, but when I 
press the cancel/exit button, then nothing happens. I've b

RE: multi validation in ADF Faces

2006-02-23 Thread Frank Felix Debatin



Hi Jim, 
 
just out of curiousity: why do you enclose the last 
commandbutton in a ? What is the 
effect?
 
I played around with subforms today, too, but failed to get 
what I wanted to achieve.
 
If you're interested, here is what I wanted to do. 
Originally I had:
 

   
   ...
  
  
   ...
  

 
There is a problem with this: when clicking on the 
checkbox, the form is validated. When the validation fails, the form is broken 
(checkbox enabled though "XYZ parameter" field disabled.
 
So, I thought I have to find a way to bypass the validation 
for the autosubmit of the checkbox. Immediate=true didn't solve it, so I tried 
to do the following with subforms:
 


  
     
   

   ...
  
    
    
  


   ...
  
 
Still, the validation happened on autoSubmit. When I put 
default="false", then there was no validation, but on submit the values of the 
first subform were not saved. After trying some more different arrangements, I 
gave up.
 
Frank Felix
 


From: James Moores 
[mailto:[EMAIL PROTECTED] Sent: Thursday, February 23, 
2006 3:35 PMTo: MyFaces DiscussionSubject: multi 
 validation in ADF Faces

Hi 
Everyone,
 
I'm having some 
problems with form validation in ADF.  I have a form with multiple sections 
that need to be validated separately - the reason is that some commandButtons do 
things like add a selection to a list that is built up as the form is filled out 
(e.g. a list of key-value properties where you can add a new key value pair or 
delete existing ones in the list).  In those cases I don't want the main 
form validation to happen and block submission.  For a while I was using 
buttons with immediate="true", but that means that the values that you are 
interested in don't get written into their backing beans before your action 
method is called.  Now I was getting around this by binding the control to 
a backing bean and getting the value directly from the control object.  But 
I thought that was a bit horrible - additionally if the field I need is a Choice 
box then I can only get the index of the selected item and have to look it up 
all over again.  That works, but I wanted to find a better way.  I 
thought I had when I (again) tried using .  I'm trying to 
do this (I've simplified it):
 

  

    

   
   
      

    
  
  
  
  
    

  
    


    

  
    

    

  
    
    
    

  
    

  
  
   
 
    


    

  

  
  

    

  


 
which all works 
great except that anything sitting in the input fields of the subforms other 
than the one submitted is wiped.  The wierd thing is that the fields in the 
other (non default=true) subforms stay populated.  The reason I thought 
this would work is the docs:
 
A UIXSubform will always allow 
the "Apply Request Values" phase to execute for its children, even when not 
"submitted", but when not "submitted", the "Process Validations" and "Update 
Model Values" phases will be skipped. This differs from an ordinary form 
component, which, when not submitted, does not (and cannot) run "Apply Request 
Values" either.

UIXSubform and "default"
In some scenarios, there may be buttons (or other components that submit the 
page) outside of the main content of a page. If this main content is in a 
UIXSubform, it could not be fully processed whenever those buttons are clicked, 
since those buttons aren't inside of the UIXSubform. To support this scenario, 
ADF Faces supports a "default" property on UIXSubform. A "default" subform 
behaves like any other subform in most respects, but if no subforms are 
"submitted" - if no subform has an appropriate event come from its children - 
then all "default" subforms act as if they are "submitted". 
The first paragraph 
seems to imply that just the Apply Request Values phase will be executed for the 
'unsubmitted' subforms, but shouldn't this be enough to maintain their values on 
the page? Am I missing something?
Anyone any 
ideas?
 
Jim
--
Jim 
Moores


Re: Ajaxanywhere

2006-02-23 Thread Mike Kienenberger
Enrique,

You should consider putting that on the Wiki.


On 2/23/06, Enrique Medina <[EMAIL PROTECTED]> wrote:
> Finally I solved all my problems ;-)
>
> Thinks to take into account:
>
> 1) Return null should work (see the thread) --> For me it wasn't working due
> to a side-effect problem. If it doesn't then use an array to define buttons
> that must be ajaxed (see thread)
> 2) VERY IMPORTANT --> Define the AAFilter as being the first filter in your
> chain --> This was the cause of all my problems with NULL pointer exception
> --> At least it MUST be the first one when another ServletResponse wrapper
> is in the game (as was happening with the ExtensionsFilter response wrapper)
> 3) If you're using Firefox, download the script debugger to see what's
> happening with JS behind the scenes ;-) You will find lots of interesting
> stuff, like preprocessors to the Ajax request, for example ;-)
> 4) Don't use redirect in the navigation rules, or the Ajax request will be
> simply bypassed
>
> Hope it helps to clarify the use of Ajaxanywhere with Myfaces.
>
> Thanks to anyone that has given me any kind of support with this issue, and
> thanks very much to guys like Vitaliy for giving us tools like this
> fantastic Ajaxanywhere :-)
>
> 2006/2/23, Enrique Medina <[EMAIL PROTECTED]>:
> > Sorry, you were right...
> >
> > I've tried it and it works great, but there are some cases where I get a
> NullPointerException when clicking the ajaxed button. But then I click it
> again, and it works!!! Debugging through your code, I see that when the
> cause why the exception is thrown is due to a call to the internal writer
> object of your BufferedResponseWrapper class, which is null. But it is not
> null for the second request on the same button... I'm missing something...
> >
> > By the way, using your proposal, should I continue using the
> ajaxAnywhere.getZonesToReload?
> >
> > Thanks very much for your support ;-)
> >
> >
> > 2006/2/23, Vitaliy Shevchuk < [EMAIL PROTECTED]>:
> >
> > >
> > > it IS the other way round ;) read carefuly my message
> > >
> > >
> ajaxAnywhere.substituteSubmitButtonsBehavior(true,[ajaxAnywhere.findForm().elements['mainForm:selectBoxBtn']]);
> // <-- arrays of "ajaxed" buttons
> > >
> > >
> > > - Original Message -
> > > From: Enrique Medina
> > >
> > > To: Vitaliy Shevchuk
> > > Cc: MyFaces Discussion ; [EMAIL PROTECTED] ; [EMAIL PROTECTED]
> ; [EMAIL PROTECTED] ; [EMAIL PROTECTED] ;
> [EMAIL PROTECTED]
> > > Sent: Thursday, February 23, 2006 8:38 AM
> > > Subject: Re: Ajaxanywhere
> > >
> > > Hi Vitaliy,
> > >
> > > Then you mean that buttons that are not Ajaxed must be passed as
> argument to the substituteSubmitButtonsBehaviour? I though
> it was the other way round; i.e. arrays of "ajaxed" buttons...
> > >
> > >
> > > 2006/2/22, Vitaliy Shevchuk <[EMAIL PROTECTED]>:
> > > >
> > > > Hi guys,
> > > >
> > > > first of all, sorry for not providing a proper support on AjaxAnywhere
> forum. I have been doing it for over 4 months but don't have much of free
> time now.
> > > >
> > > > The first solution for your problem is to specify a list of Ajaxed
> buttons when calling substituteSubmitButtonsBehavior. So
> other buttons would stay
> > > > For "all2.jsf" from the DEMO application it would look like this :
> > > >
> ajaxAnywhere.substituteSubmitButtonsBehavior(true,[ajaxAnywhere.findForm().elements['mainForm:selectBoxBtn']]);
> > > >
> > > > then, if you add a second command button
> > > > 
> > > > it would work without Ajax.
> > > >
> > > > some doc is available here
> http://ajaxanywhere.sourceforge.net/js_docs_out/AjaxAnywhere.html#substituteSubmitButtonsBehavior
>
> > > >
> > > > Vitaliy.
> > > >
> > > > PS. Indeed, there are several bugs discovered here and I need to fix
> them. It should work when returning null from getZonesToRefresh(), next
> release will fix it.
> > > > PPS. for the navigation to another page when submitting with AA, did
> you try "redirect" parameter in JSF config? I'm not sure but it should work,
> as response.sendRedirect() is interpreted as location.href=".." on the
> client side.
> > > >
> > > >
> > > > - Original Message -
> > > > From: Enrique Medina
> > > > To: MyFaces Discussion ; [EMAIL PROTECTED] ;
> [EMAIL PROTECTED] ; [EMAIL PROTECTED] ; [EMAIL PROTECTED] ;
> [EMAIL PROTECTED] ; [EMAIL PROTECTED] ;
> [EMAIL PROTECTED]
> > > > Sent: Tuesday, February 21, 2006 9:45 PM
> > > > Subject: Re: Ajaxanywhere
> > > >
> > > > And more testing...
> > > >
> > > > I have downloaded the DEMO from the Ajaxanywhere site, and made a
> change on the facesFrame.jsp to make the "Calculate price" button
> non-ajaxed. And it does not work; i.e. if I quit the "Calculate price" from
> the ajaxed zones, then the action is never executed.
> > > >
> > > > From my experience, Ajaxanywhere does not work with a page combining
> ajaxed and non-ajaxed JSF actions.
> > > >
> > > >
> > > > 2006/2/21, Enrique Medina <[EMAIL PROTECTED] >:
> > > > > Definetively, I can't ma

Where to get JSF 1.2 jars?

2006-02-23 Thread Frank Felix Debatin



I downloaded the "Java EE 5" today, but it does not 
contain a separate jar for the JSF 1.2 APIs (it is bundled with all the over 
stuff). Is there a stand-alone distribution available somewhere? 

 
TIA
Frank 
Felix


t:inputCalendar component position

2006-02-23 Thread SRavuri



Hi,
  I am trying to insert a t:inputCalendar
component in my jsp page with faces. Everything is fine, but when I click
the button beside the input text, it pops up the calendar at the top of
the page above everything. I want it to pop up just beside or below the
button to select the date. Is there any attribute in the tag which takes
care of it or do I need to change the _javascript_ code in the popcalendar.js
file?

Can somebody let me know how can it
work out

Thanks for any feedback.

Thanks
Latha



This e-mail and any attachments are intended only for the
individual or company to which it is addressed and may contain
information which is privileged, confidential and prohibited from
disclosure or unauthorized use under applicable law.  If you are
not the intended recipient of this e-mail, you are hereby notified
that any use, dissemination, or copying of this e-mail or the
information contained in this e-mail is strictly prohibited by the
sender.  If you have received this transmission in error, please
return the material received to the sender and delete all copies
from your system.





inputFileUpload directly into Databse

2006-02-23 Thread udokrass
Hi,

i just want to upload a file and store it immediate in a database.
Have somebody successfuly tried this?
Must u manipulate the uploadRepositoryPath in the web.xml ???

Tanx!







Re: inputFileUpload directly into Databse

2006-02-23 Thread Jurgen Lust

I would just follow the example on the Wiki here:

http://wiki.apache.org/myfaces/Setup_For_File_Uploads

And then in the action retrieve the byte array from the UploadedFile and 
write it to a blob in the database.
You could set the uploadThresholdSize high enough so that the uploaded 
files never get written to disk.


Jurgen

[EMAIL PROTECTED] schreef:

Hi,

i just want to upload a file and store it immediate in a database.
Have somebody successfuly tried this?
Must u manipulate the uploadRepositoryPath in the web.xml ???

Tanx!






  




Re: ADF installation setup: tld, jars and web.xml woes

2006-02-23 Thread Philippe Lamote

Thanks Felix.

- I added all 4 taglibs to the web.xml. (f/h and af/afh)
- I also "physically" added the afh & af tld files I found in the  
demo.war inside my WEB-INF (& adapted the pointers to them in my  
web.xml)

- I added all 4 jars (JSF api/impl and Oracle api/impl)
- I also added this shared lib anyway.

Yet I stil get the same error.
I replaced the RI libs with the MyFaces API/Impl jars, this had as  
effect the Web app wouldn't even start.
With the RI jars, at least it tries to start; the last thing I see  
before the login page -almost- loads, it its valid "title" declared  
in the html head.


Then I get this one:
org.apache.jasper.JasperException: /WEB-INF/resources/pages/ 
loginPage.jsp(7,54) Could not add one or more tag libraries.
	org.apache.jasper.compiler.DefaultErrorHandler.jspError 
(DefaultErrorHandler.java:39)
	org.apache.jasper.compiler.ErrorDispatcher.dispatch 
(ErrorDispatcher.java:405)
	org.apache.jasper.compiler.ErrorDispatcher.jspError 
(ErrorDispatcher.java:86)
	org.apache.jasper.compiler.JspDocumentParser.parse 
(JspDocumentParser.java:211)
	org.apache.jasper.compiler.ParserController.doParse 
(ParserController.java:196)
	org.apache.jasper.compiler.ParserController.parse 
(ParserController.java:100)

org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
	org.apache.jasper.JspCompilationContext.compile 
(JspCompilationContext.java:563)
	org.apache.jasper.servlet.JspServletWrapper.service 
(JspServletWrapper.java:293)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java: 
314)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	com.sun.faces.context.ExternalContextImpl.dispatch 
(ExternalContextImpl.java:322)
	com.sun.faces.application.ViewHandlerImpl.renderView 
(ViewHandlerImpl.java:130)
	oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView 
(ViewHandlerImpl.java:159)
	com.sun.faces.lifecycle.RenderResponsePhase.execute 
(RenderResponsePhase.java:87)

com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
	 
oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter( 
AdfFacesFilterImpl.java:279)
	oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl 
(AdfFacesFilterImpl.java:248)
	oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter 
(AdfFacesFilterImpl.java:172)
	oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter 
(AdfFacesFilter.java:80)




2/ What libraries need to be in WEB-INF/lib?
The Oracle site says 'dependencies are JSF & some adfshare.lib'.
Elsewhere I reed this last sharelib is no longer required.
Does this mean the jsf-api & jsf-impl -.jars need to be added?

All of them. For me, it didn't work without the adfshare.jar.

3/ What tlds need to be added? Do the oracle api/impl-jars include  
the JSF

h/f *taglibs* as well?
I read somewhere they include the af- & afh- taglibs in their jars so no
need to 1/ explicitely declare them in the web.xml and 2/ add them to
WEB-INF.
Is this correct & the same for the jsf f/h taglibs?
<<<

They are included in the jars, but I did not manage to configure it  
right to

let them be found automatically. So I put them next to the web.xml.

The above works, but I'm not glad with it, because some stuff  
shouldn't be

necessary.

Frank Felix



RE: ADF installation setup: tld, jars and web.xml woes

2006-02-23 Thread Frank Felix Debatin
Hi Philippe, 

I use jspx files, starting with:

http://java.sun.com/JSP/Page"; version="1.2"
xmlns:f="http://java.sun.com/jsf/core";
xmlns:h="http://java.sun.com/jsf/html";
xmlns:af="http://xmlns.oracle.com/adf/faces";>

Running on Tomcat and JDK 1.5.

Frank Felix
 

-Original Message-
From: Philippe Lamote [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 23, 2006 10:19 PM
To: MyFaces Discussion
Subject: Re: ADF installation setup: tld, jars and web.xml woes

Thanks Felix.

- I added all 4 taglibs to the web.xml. (f/h and af/afh)
- I also "physically" added the afh & af tld files I found in the demo.war
inside my WEB-INF (& adapted the pointers to them in my
web.xml)
- I added all 4 jars (JSF api/impl and Oracle api/impl)
- I also added this shared lib anyway.

Yet I stil get the same error.
I replaced the RI libs with the MyFaces API/Impl jars, this had as effect
the Web app wouldn't even start.
With the RI jars, at least it tries to start; the last thing I see before
the login page -almost- loads, it its valid "title" declared in the html
head.

Then I get this one:
org.apache.jasper.JasperException: /WEB-INF/resources/pages/
loginPage.jsp(7,54) Could not add one or more tag libraries.
org.apache.jasper.compiler.DefaultErrorHandler.jspError
(DefaultErrorHandler.java:39)
org.apache.jasper.compiler.ErrorDispatcher.dispatch
(ErrorDispatcher.java:405)
org.apache.jasper.compiler.ErrorDispatcher.jspError
(ErrorDispatcher.java:86)
org.apache.jasper.compiler.JspDocumentParser.parse
(JspDocumentParser.java:211)
org.apache.jasper.compiler.ParserController.doParse
(ParserController.java:196)
org.apache.jasper.compiler.ParserController.parse
(ParserController.java:100)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
org.apache.jasper.JspCompilationContext.compile
(JspCompilationContext.java:563)
org.apache.jasper.servlet.JspServletWrapper.service
(JspServletWrapper.java:293)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:

314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
com.sun.faces.context.ExternalContextImpl.dispatch
(ExternalContextImpl.java:322)
com.sun.faces.application.ViewHandlerImpl.renderView
(ViewHandlerImpl.java:130)
oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView
(ViewHandlerImpl.java:159)
com.sun.faces.lifecycle.RenderResponsePhase.execute
(RenderResponsePhase.java:87)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
 
oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(
AdfFacesFilterImpl.java:279)

oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl
(AdfFacesFilterImpl.java:248)
oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter
(AdfFacesFilterImpl.java:172)
oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter
(AdfFacesFilter.java:80)



2/ What libraries need to be in WEB-INF/lib?
The Oracle site says 'dependencies are JSF & some adfshare.lib'.
Elsewhere I reed this last sharelib is no longer required.
Does this mean the jsf-api & jsf-impl -.jars need to be added?

All of them. For me, it didn't work without the adfshare.jar.

3/ What tlds need to be added? Do the oracle api/impl-jars include the JSF
h/f *taglibs* as well?
I read somewhere they include the af- & afh- taglibs in their jars so no
need to 1/ explicitely declare them in the web.xml and 2/ add them to
WEB-INF.
Is this correct & the same for the jsf f/h taglibs?
<<<

They are included in the jars, but I did not manage to configure it right to
let them be found automatically. So I put them next to the web.xml.

The above works, but I'm not glad with it, because some stuff shouldn't be
necessary.

Frank Felix




Re: [JSF] Tiles and Reusable Template

2006-02-23 Thread Mike Kienenberger
On 2/23/06, Garner, Shawn <[EMAIL PROTECTED]> wrote:
> I looked at Clay and it looks like it will work but I want to examine
> facelets more first.
>
> The facelets tutorial says it does easy templating but there were no
> examples on how to do it and I couldn't find one in the documentation.
> Is there an example of this somewhere?

This is an old one.

http://hookom.blogspot.com/2005/05/facelets-templating.html

There's probably more out there by now.


Re: ADF installation setup: tld, jars and web.xml woes

2006-02-23 Thread Philippe Lamote

This is great:
I removed
1/ all taglibs references in web.xml
2/ all taglib files in WEB-INF (also the h/f)
3/ this shared ADF jar

... and it worked!
My layout is totally screwed, I guess I will have to translate the  
HTML, but it works, the error is gone.

Philippe

On 23 Feb 2006, at 22:25, Frank Felix Debatin wrote:

Hi Philippe,

I use jspx files, starting with:

http://java.sun.com/JSP/Page"; version="1.2"
xmlns:f="http://java.sun.com/jsf/core";
xmlns:h="http://java.sun.com/jsf/html";
xmlns:af="http://xmlns.oracle.com/adf/faces";>

Running on Tomcat and JDK 1.5.

Frank Felix


-Original Message-
From: Philippe Lamote [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 23, 2006 10:19 PM
To: MyFaces Discussion
Subject: Re: ADF installation setup: tld, jars and web.xml woes

Thanks Felix.

- I added all 4 taglibs to the web.xml. (f/h and af/afh)
- I also "physically" added the afh & af tld files I found in the  
demo.war

inside my WEB-INF (& adapted the pointers to them in my
web.xml)
- I added all 4 jars (JSF api/impl and Oracle api/impl)
- I also added this shared lib anyway.

Yet I stil get the same error.
I replaced the RI libs with the MyFaces API/Impl jars, this had as  
effect

the Web app wouldn't even start.
With the RI jars, at least it tries to start; the last thing I see  
before

the login page -almost- loads, it its valid "title" declared in the html
head.

Then I get this one:
org.apache.jasper.JasperException: /WEB-INF/resources/pages/
loginPage.jsp(7,54) Could not add one or more tag libraries.
org.apache.jasper.compiler.DefaultErrorHandler.jspError
(DefaultErrorHandler.java:39)
org.apache.jasper.compiler.ErrorDispatcher.dispatch
(ErrorDispatcher.java:405)
org.apache.jasper.compiler.ErrorDispatcher.jspError
(ErrorDispatcher.java:86)
org.apache.jasper.compiler.JspDocumentParser.parse
(JspDocumentParser.java:211)
org.apache.jasper.compiler.ParserController.doParse
(ParserController.java:196)
org.apache.jasper.compiler.ParserController.parse
(ParserController.java:100)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
org.apache.jasper.JspCompilationContext.compile
(JspCompilationContext.java:563)
org.apache.jasper.servlet.JspServletWrapper.service
(JspServletWrapper.java:293)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:

314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
com.sun.faces.context.ExternalContextImpl.dispatch
(ExternalContextImpl.java:322)
com.sun.faces.application.ViewHandlerImpl.renderView
(ViewHandlerImpl.java:130)
oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView
(ViewHandlerImpl.java:159)
com.sun.faces.lifecycle.RenderResponsePhase.execute
(RenderResponsePhase.java:87)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)

oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(
AdfFacesFilterImpl.java:279)

oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl
(AdfFacesFilterImpl.java:248)
oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter
(AdfFacesFilterImpl.java:172)
oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter
(AdfFacesFilter.java:80)



2/ What libraries need to be in WEB-INF/lib?
The Oracle site says 'dependencies are JSF & some adfshare.lib'.
Elsewhere I reed this last sharelib is no longer required.
Does this mean the jsf-api & jsf-impl -.jars need to be added?

All of them. For me, it didn't work without the adfshare.jar.

3/ What tlds need to be added? Do the oracle api/impl-jars include  
the JSF

h/f *taglibs* as well?
I read somewhere they include the af- & afh- taglibs in their jars so no
need to 1/ explicitely declare them in the web.xml and 2/ add them to
WEB-INF.
Is this correct & the same for the jsf f/h taglibs?
<<<

They are included in the jars, but I did not manage to configure it  
right to

let them be found automatically. So I put them next to the web.xml.

The above works, but I'm not glad with it, because some stuff  
shouldn't be

necessary.

Frank Felix





Re: [JSF] Tiles and Reusable Template

2006-02-23 Thread Mike Kienenberger
I started a facelets wiki page on facelets articles:

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

Feel free to add more as you come across them.   Not sure if the JSF
central article is significantly different than the blog article on
templating.

On 2/23/06, Mike Kienenberger <[EMAIL PROTECTED]> wrote:
> On 2/23/06, Garner, Shawn <[EMAIL PROTECTED]> wrote:
> > I looked at Clay and it looks like it will work but I want to examine
> > facelets more first.
> >
> > The facelets tutorial says it does easy templating but there were no
> > examples on how to do it and I couldn't find one in the documentation.
> > Is there an example of this somewhere?
>
> This is an old one.
>
> http://hookom.blogspot.com/2005/05/facelets-templating.html
>
> There's probably more out there by now.
>


Failure checking out release 1.1.1 from SVN.

2006-02-23 Thread Steve McCoole
When I try to check version 1.1.1 out of the svn repository I keep 
getting the following error.  Should I be using a different URL?  I'm 
using the subclipse plugin.


checkout -r HEAD https://svn.apache.org/repos/asf/myfaces/release/tags/1_1_1
 U C:/ws/smm/myfaces-1.1.1
Updating external location at: C:/ws/smm/myfaces-1.1.1/api
Bad URL passed to RA layer
svn: URL 'https://svn.apache.org/repos/asf/myfaces/api/tags/1_1_1' 
doesn't exist


Thanks,
Steve


Re: Next stable version of sandbox?

2006-02-23 Thread Sean Schofield
IMO schedule is getting close to emerging from the sandbox.  It will
probably be the first component we promote once we get a new tomahawk
release and the commons refactoring behind us.

Sean

On 2/23/06, Andrew Robinson <[EMAIL PROTECTED]> wrote:
> Yeah I know. I don't mind using it as unstable, I just want the core
> to be stable. Under 1.1.1, the latest validateCompareTo is looking for
> ResourceLoader, and hence stops my project from loading.
>
> The two components I want are validateCompareTo and schedule for now.
> From what others have said, it sounds like schedule is getting close
> to becoming part of tomahawk. Tonight I'm going to try to rip the
> validate compare to out of myfaces and into my source tree to try to
> get it to work against 1.1.1. Hopefully schedule works in the 1.1.1
> version (I see the code is in the sandbox.jar for 1.1.1) well.
>
> -Andrew
>
>
>
> On 2/23/06, Werner Punz <[EMAIL PROTECTED]> wrote:
> > Hi Andrew always have in mind that the sandbox is sort of a Tomahawk
> > unstable ...
> > anything in there can get a major overhaul between versions and to the
> > worse might be pulled.
> > (although for most components it is very very unlikely)
> >
> >
> >
> > Andrew Robinson schrieb:
> > > I have a bit of a dilemma. I would like to have the stability of
> > > MyFaces 1.1.1, but I'd like to use some of the new Sandbox components
> > > (like validateCompareTo) which are not in the 1.1.1 release and seem
> > > to require the newest core of myfaces to work (validateCompareTo was
> > > throwing class and method not found errors when I tried using it on
> > > myfaces 1.1.1).
> > >
> > > In the SVN branch, I find I come across many errors. The last one was
> > > a bad one. About a week ago t:commandButton tried to treat the
> > > "action" property as a ValueBinding instead of a MethodBinding.
> > >
> > > Any idea on the next scheduled release? (rc or beta would be nice over
> > > source control updates).
> > >
> > > Thanks,
> > > Andrew
> > >
> >
> >
>


RE: [JSF] Tiles and Reusable Template

2006-02-23 Thread Garner, Shawn
Title: Message










Not speaking my language here good buddy. 


I'm not sure which part of the post
you are talking about and I don't really see how it is applicable to my
situation.

 

Shawn



 









From: CONNER, BRENDAN
(SBCSI) [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 22, 2006
2:49 PM
To: MyFaces Discussion
Subject: RE: [JSF] Tiles and
Reusable Template



 



See http://forum.java.sun.com/thread.jspa?forumID=427&threadID=540153 on
how to define a central tiles dispatch page





 





- Brendan





 





-Original Message-
From: Garner, Shawn
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 22, 2006
11:56 AM
To: 'MyFaces Discussion'
Subject: [JSF] Tiles and Reusable
Template





I tried using tiles with JSF and found it does not work very
well.

You end up having to define every page in the tiles.xml file
that you want to use the template for.

Are there any other approaches to creating a reusable
template that uses multiple jsp pages?

Seems like I should be able to just include a page and
override the body, title portion without redefining the template for every
page.

 

 

Shawn

 




This
email may contain confidential 
material. If you were not an intended recipient, 
Please notify the sender and delete all copies. 
We may monitor email to and from our network.

 ***




 








 

This email may contain confidential material. If you were not 
an intended recipient, Please notify the sender and delete all copies. 
We may monitor email to and from our network.
 *** 

 





Re: Failure checking out release 1.1.1 from SVN.

2006-02-23 Thread Sean Schofield
The SVN is really screwed up due to the use of externals and the fact
that we moved stuff around.  We've dropped the use of externals in the
current trunk to avoid this problem in the future.  Sorry about this. 
Believe me that we regret this as well.

We may sort it all out one day but in the meantime you can download
the source distro here: http://myfaces.apache.org/download.html

Sean


On 2/23/06, Steve McCoole <[EMAIL PROTECTED]> wrote:
> When I try to check version 1.1.1 out of the svn repository I keep
> getting the following error.  Should I be using a different URL?  I'm
> using the subclipse plugin.
>
> checkout -r HEAD https://svn.apache.org/repos/asf/myfaces/release/tags/1_1_1
>   U C:/ws/smm/myfaces-1.1.1
>  Updating external location at: C:/ws/smm/myfaces-1.1.1/api
>  Bad URL passed to RA layer
> svn: URL 'https://svn.apache.org/repos/asf/myfaces/api/tags/1_1_1'
> doesn't exist
>
> Thanks,
> Steve
>


Re: myfaces tree2 delete node

2006-02-23 Thread Sean Schofield
Well that sounds like we're making progress if you can't reproduce one
of the bugs.

Sean

On 2/23/06, Hendrik Neumann <[EMAIL PROTECTED]> wrote:
> Well I'm sorry, but I think that the problem descriped was not a bug -
> the problem was related with my "populateTree"-Method which did some
> "really ugly things".
>
> At least the "Node is expanded but it is also considered a leaf" is
> gone and not reproducible for me.
>
> Nevertheless, thank you for your helpfulness!
>
> 2006/2/22, Sean Schofield <[EMAIL PROTECTED]>:
> > I am happy to try and help out but I need a little more investigation
> > from you guys.  You will need to investigate the latest source code
> > and let me know where things are breaking down.  Unfortunately there
> > are some issues getting the new release done that are taking up most
> > of my time.
> >
> > So if you are serious about fixing this, please dig in and provide an
> > explanation as to where exactly things are failing (in the code iself)
> > instead of just describing the usecase.  If you do this, I can likely
> > help you better.  Keep in mind I'm not doing any dynamic tree stuff
> > myself (yet) so you will need to help me help you.
> >
> > Sean
> >
> > On 2/22/06, Hendrik Neumann <[EMAIL PROTECTED]> wrote:
> > > I have the same problem... this issue still seems not to be fixed
> > >
> > > 2006/2/8, Michal <[EMAIL PROTECTED]>:
> > > > I've got the same problem - I believe that's the problem of storing old 
> > > > tree
> > > > somewhere (as it's client side toggle tree). Is there any way to update 
> > > > it?
> > > > Some flush cache method's ;) or something? I really stuck with this, 
> > > > tried
> > > > almost all.
> > > >
> > > >
> > >
> > >
> > > --
> > > Mit freundlichen Grüßen / Greetings,
> > > Hendrik Neumann; Ruhr-University of Bochum
> > >
> >
>
>
> --
> Mit freundlichen Grüßen / Greetings,
> Hendrik Neumann; Ruhr-University of Bochum
>


Re: inputFileUpload directly into Databse

2006-02-23 Thread udokrass
Hi Jurgen,

thanx for that very quick answer!
That work for me! Very well work!

But i have another question at all:
How can i access this blob?
With the graphicImage tag?
I tried this, but tomcat says:
"Graphic with id image has no value (url)"
I access my database with hibernate, so my tag is:
graphicImage value="#{home.picture}"
I hope that can work...

Somebody tried that before me?
Would be nice : )

Jurgen Lust schrieb:I would just follow the example on the Wiki here:

http://wiki.apache.org/myfaces/Setup_For_File_Uploads

And then in the action retrieve the byte array from the UploadedFile and write 
it to a blob in the database.
You could set the uploadThresholdSize high enough so that the uploaded files 
never get written to disk.

Jurgen

[EMAIL PROTECTED] schreef:
Hi,

i just want to upload a file and store it immediate in a database.
Have somebody successfuly tried this?
Must u manipulate the uploadRepositoryPath in the web.xml ???

Tanx!






  




Noch allein? 1 Million Singles warten auf ein Date!
Schnell Kontakt aufnehmen bei Deutschlands beliebtester Partnerboerse
http://singles.freenet.de/index.html?pid=11512


RE: ADF installation setup: tld, jars and web.xml woes

2006-02-23 Thread Frank Felix Debatin
>>>
My layout is totally screwed, 
<<<

Maybe the resources servlet is missing in the web.xml.

Frank Felix



Re: inputFileUpload directly into Databse

2006-02-23 Thread Jurgen Lust
Well, typically I would write a little servlet that fetches the byte 
array from the blob in the database and renders it to the response 
outputstream, but there is also a new component in the sandbox that 
might help you with this: the s:graphicImageDynamic. There is an example 
of how it is used with an uploaded image in the sandbox examples.


Jurgen

[EMAIL PROTECTED] schreef:

Hi Jurgen,

thanx for that very quick answer!
That work for me! Very well work!

But i have another question at all:
How can i access this blob?
With the graphicImage tag?
I tried this, but tomcat says:
"Graphic with id image has no value (url)"
I access my database with hibernate, so my tag is:
graphicImage value="#{home.picture}"
I hope that can work...

Somebody tried that before me?
Would be nice : )

Jurgen Lust schrieb:I would just follow the example on the Wiki here:

http://wiki.apache.org/myfaces/Setup_For_File_Uploads

And then in the action retrieve the byte array from the UploadedFile and write 
it to a blob in the database.
You could set the uploadThresholdSize high enough so that the uploaded files 
never get written to disk.

Jurgen

[EMAIL PROTECTED] schreef:
Hi,

i just want to upload a file and store it immediate in a database.
Have somebody successfuly tried this?
Must u manipulate the uploadRepositoryPath in the web.xml ???

Tanx!






  





Noch allein? 1 Million Singles warten auf ein Date!
Schnell Kontakt aufnehmen bei Deutschlands beliebtester Partnerboerse
http://singles.freenet.de/index.html?pid=11512

  




Re: ADF installation setup: tld, jars and web.xml woes

2006-02-23 Thread Philippe Lamote

You mean this entry: (?)

resources
  		oracle.adf.view.faces.webapp.ResourceServletservlet-class>




resources
/adf/*


I had a table in html, with in its -cells, soem  &  
 elements...
Now the table is rendered correctly, but all JSF elements appear even  
under the page footer!
I tried to change from solve the prob.

Have you had similar experiences with mixing HTML& JSF?

Philippe


On 23 Feb 2006, at 23:39, Frank Felix Debatin wrote:




My layout is totally screwed,
<<<

Maybe the resources servlet is missing in the web.xml.

Frank Felix




RE: ADF installation setup: tld, jars and web.xml woes

2006-02-23 Thread Frank Felix Debatin
>>>
You mean this entry: (
<<<

Yes.

>>>
Have you had similar experiences with mixing HTML& JSF?
<<<

I'm far from being an expert in JSF, but if you want to use standard tags
such as  I guess you need to always enclose them with the verbatim tag:

  

This is quite ugly, and, following this mailing list, people prefer to use
the facelets or shale libraries if they intend to mix. I use the
, so there I don't need templates or html.

Frank Felix



-Original Message-
From: Philippe Lamote [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 23, 2006 11:52 PM
To: MyFaces Discussion
Subject: Re: ADF installation setup: tld, jars and web.xml woes

You mean this entry: (?)

resources
 
oracle.adf.view.faces.webapp.ResourceServlet



resources
/adf/* 

I had a table in html, with in its -cells, soem  &
 elements...
Now the table is rendered correctly, but all JSF elements appear even under
the page footer!
I tried to change from >>
My layout is totally screwed,
<<<

Maybe the resources servlet is missing in the web.xml.

Frank Felix





Re: Next stable version of sandbox?


I totally agree :)
I have just posted a patch for the last remaining open JIRA issue for 
the schedule component, and I think it is now feature complete, so the 
API won't change very much anymore.
I just want to change the default color theme to reflect the myfaces 
website look and feel. That greenish thing is probably not much use to 
anyone.

After that, I'll start working on the Planner component.

Jurgen

Sean Schofield schreef:

IMO schedule is getting close to emerging from the sandbox.  It will
probably be the first component we promote once we get a new tomahawk
release and the commons refactoring behind us.

Sean

On 2/23/06, Andrew Robinson <[EMAIL PROTECTED]> wrote:
  

Yeah I know. I don't mind using it as unstable, I just want the core
to be stable. Under 1.1.1, the latest validateCompareTo is looking for
ResourceLoader, and hence stops my project from loading.

The two components I want are validateCompareTo and schedule for now.
From what others have said, it sounds like schedule is getting close
to becoming part of tomahawk. Tonight I'm going to try to rip the
validate compare to out of myfaces and into my source tree to try to
get it to work against 1.1.1. Hopefully schedule works in the 1.1.1
version (I see the code is in the sandbox.jar for 1.1.1) well.

-Andrew



On 2/23/06, Werner Punz <[EMAIL PROTECTED]> wrote:


Hi Andrew always have in mind that the sandbox is sort of a Tomahawk
unstable ...
anything in there can get a major overhaul between versions and to the
worse might be pulled.
(although for most components it is very very unlikely)



Andrew Robinson schrieb:
  

I have a bit of a dilemma. I would like to have the stability of
MyFaces 1.1.1, but I'd like to use some of the new Sandbox components
(like validateCompareTo) which are not in the 1.1.1 release and seem
to require the newest core of myfaces to work (validateCompareTo was
throwing class and method not found errors when I tried using it on
myfaces 1.1.1).

In the SVN branch, I find I come across many errors. The last one was
a bad one. About a week ago t:commandButton tried to treat the
"action" property as a ValueBinding instead of a MethodBinding.

Any idea on the next scheduled release? (rc or beta would be nice over
source control updates).

Thanks,
Andrew


  




RE: [JSF] Tiles and Reusable Template

We're using Tiles with JSF and have no problems.  Works wonderfully, in
fact.  We just needed to code up a tilesDispatch.jsp to avoid having to
create a page for every tile.  (One of the other threads on the subject
gives a link for how to do this.  If you can't find the link, let me
know.  I think it was on java.net.)

- Brendan

-Original Message-
From: Garner, Shawn [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 23, 2006 12:51 PM
To: 'MyFaces Discussion'
Subject: RE: [JSF] Tiles and Reusable Template


I looked at Clay and it looks like it will work but I want to examine
facelets more first.

The facelets tutorial says it does easy templating but there were no
examples on how to do it and I couldn't find one in the documentation.
Is there an example of this somewhere?


Shawn
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper
Sent: Wednesday, February 22, 2006 6:44 PM
To: users@myfaces.apache.org
Subject: Re: [JSF] Tiles and Reusable Template

Garner, Shawn wrote:
> I tried using tiles with JSF and found it does not work very well.
> 
> You end up having to define every page in the tiles.xml file that you
want
> to use the template for.
> 
> Are there any other approaches to creating a reusable template that
uses
> multiple jsp pages?
> 
> Seems like I should be able to just include a page and override the
body,
> title portion without redefining the template for every page.

You may be able to do what you want with Tiles using the JSP tags 
instead of the XML file. Alternatively, take a look at Facelets or Shale

Clay.

L.


 
This email may contain confidential material. 
If you were not an intended recipient, 
Please notify the sender and delete all copies. 
We may monitor email to and from our network. 




Re: multi validation in ADF Faces

But really, the values can only get lost if you build up a new view.
You should just return e.g. "null" from your action-method if you
don't want a new view to be built.

regards,

Martin

On 2/23/06, Frank Felix Debatin <[EMAIL PROTECTED]> wrote:
>
> Hi Jim,
>
> just out of curiousity: why do you enclose the last commandbutton in a
> ? What is the effect?
>
> I played around with subforms today, too, but failed to get what I wanted to
> achieve.
>
> If you're interested, here is what I wanted to do. Originally I had:
>
> 
>
>...
>value="#{enableXYZ}"/>
>   
>...
>   
> 
>
> There is a problem with this: when clicking on the checkbox, the form is
> validated. When the validation fails, the form is broken (checkbox enabled
> though "XYZ parameter" field disabled.
>
> So, I thought I have to find a way to bypass the validation for the
> autosubmit of the checkbox. Immediate=true didn't solve it, so I tried to do
> the following with subforms:
>
>
> 
> 
>
>...
>   
>  value="#{enableXYZ}"/>
>
>
>...
>   
>
> Still, the validation happened on autoSubmit. When I put default="false",
> then there was no validation, but on submit the values of the first subform
> were not saved. After trying some more different arrangements, I gave up.
>
> Frank Felix
>
>
>  
>  From: James Moores [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 23, 2006 3:35 PM
> To: MyFaces Discussion
> Subject: multi  validation in ADF Faces
>
>
>
> Hi Everyone,
>
> I'm having some problems with form validation in ADF.  I have a form with
> multiple sections that need to be validated separately - the reason is that
> some commandButtons do things like add a selection to a list that is built
> up as the form is filled out (e.g. a list of key-value properties where you
> can add a new key value pair or delete existing ones in the list).  In those
> cases I don't want the main form validation to happen and block submission.
> For a while I was using buttons with immediate="true", but that means that
> the values that you are interested in don't get written into their backing
> beans before your action method is called.  Now I was getting around this by
> binding the control to a backing bean and getting the value directly from
> the control object.  But I thought that was a bit horrible - additionally if
> the field I need is a Choice box then I can only get the index of the
> selected item and have to look it up all over again.  That works, but I
> wanted to find a better way.  I thought I had when I (again) tried using
> .  I'm trying to do this (I've simplified it):
>
> 
>   
> 
> 
> 
> 
>   
>   
>   
> 
>
>
> 
>
> 
>   
> 
> 
> 
>   
> 
>   
>   
> 
> 
>
> 
>   
>   
>   
> 
>   
> 
>
> which all works great except that anything sitting in the input fields of
> the subforms other than the one submitted is wiped.  The wierd thing is that
> the fields in the other (non default=true) subforms stay populated.  The
> reason I thought this would work is the docs:
>
> A UIXSubform will always allow the "Apply Request Values" phase to execute
> for its children, even when not "submitted", but when not "submitted", the
> "Process Validations" and "Update Model Values" phases will be skipped. This
> differs from an ordinary form component, which, when not submitted, does not
> (and cannot) run "Apply Request Values" either.
>
> UIXSubform and "default"
>
> In some scenarios, there may be buttons (or other components that submit the
> page) outside of the main content of a page. If this main content is in a
> UIXSubform, it could not be fully processed whenever those buttons are
> clicked, since those buttons aren't inside of the UIXSubform. To support
> this scenario, ADF Faces supports a "default" property on UIXSubform. A
> "default" subform behaves like any other subform in most respects, but if no
> subforms are "submitted" - if no subform has an appropriate event come from
> its children - then all "default" subforms act as if they are "submitted".
>
> The first paragraph seems to imply that just the Apply Request Values phase
> will be executed for the 'unsubmitted' subforms, but shouldn't this be
> enough to maintain their values on the page? Am I missing something?
> Anyone any ideas?
>
> Jim
> --
> Jim Moores


--

http://www.irian.at

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

Professional Support for Apache MyFaces


Re: multi validation in ADF Faces

@Frank Felix:

I suggest - if you can - to try the myfaces sandbox s:subform
component together with the extended buttons and links of myfaces.
I've added an actionFor attribute for the links and buttons, in which
you can put a comma-separated list of id's of subforms which will be
saved. So you might have some more degrees of freedom with this
arrangement.

regards,

Martin

On 2/24/06, Martin Marinschek <[EMAIL PROTECTED]> wrote:
> But really, the values can only get lost if you build up a new view.
> You should just return e.g. "null" from your action-method if you
> don't want a new view to be built.
>
> regards,
>
> Martin
>
> On 2/23/06, Frank Felix Debatin <[EMAIL PROTECTED]> wrote:
> >
> > Hi Jim,
> >
> > just out of curiousity: why do you enclose the last commandbutton in a
> > ? What is the effect?
> >
> > I played around with subforms today, too, but failed to get what I wanted to
> > achieve.
> >
> > If you're interested, here is what I wanted to do. Originally I had:
> >
> > 
> >
> >...
> >> value="#{enableXYZ}"/>
> >   
> >...
> >   
> > 
> >
> > There is a problem with this: when clicking on the checkbox, the form is
> > validated. When the validation fails, the form is broken (checkbox enabled
> > though "XYZ parameter" field disabled.
> >
> > So, I thought I have to find a way to bypass the validation for the
> > autosubmit of the checkbox. Immediate=true didn't solve it, so I tried to do
> > the following with subforms:
> >
> >
> > 
> >>  
> >
> >...
> >   
> >  > value="#{enableXYZ}"/>
> >  >   
> >
> >...
> >   
> >
> > Still, the validation happened on autoSubmit. When I put default="false",
> > then there was no validation, but on submit the values of the first subform
> > were not saved. After trying some more different arrangements, I gave up.
> >
> > Frank Felix
> >
> >
> >  
> >  From: James Moores [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, February 23, 2006 3:35 PM
> > To: MyFaces Discussion
> > Subject: multi  validation in ADF Faces
> >
> >
> >
> > Hi Everyone,
> >
> > I'm having some problems with form validation in ADF.  I have a form with
> > multiple sections that need to be validated separately - the reason is that
> > some commandButtons do things like add a selection to a list that is built
> > up as the form is filled out (e.g. a list of key-value properties where you
> > can add a new key value pair or delete existing ones in the list).  In those
> > cases I don't want the main form validation to happen and block submission.
> > For a while I was using buttons with immediate="true", but that means that
> > the values that you are interested in don't get written into their backing
> > beans before your action method is called.  Now I was getting around this by
> > binding the control to a backing bean and getting the value directly from
> > the control object.  But I thought that was a bit horrible - additionally if
> > the field I need is a Choice box then I can only get the index of the
> > selected item and have to look it up all over again.  That works, but I
> > wanted to find a better way.  I thought I had when I (again) tried using
> > .  I'm trying to do this (I've simplified it):
> >
> > 
> >   
> > 
> > 
> > 
> > 
> >   
> >   
> >   
> > 
> >> 
> >
> > 
> >> 
> > 
> >   
> > 
> > 
> > 
> >   
> > 
> >   
> >   
> > 
> > 
> >
> > 
> >   
> >   
> >   
> > 
> >   
> > 
> >
> > which all works great except that anything sitting in the input fields of
> > the subforms other than the one submitted is wiped.  The wierd thing is that
> > the fields in the other (non default=true) subforms stay populated.  The
> > reason I thought this would work is the docs:
> >
> > A UIXSubform will always allow the "Apply Request Values" phase to execute
> > for its children, even when not "submitted", but when not "submitted", the
> > "Process Validations" and "Update Model Values" phases will be skipped. This
> > differs from an ordinary form component, which, when not submitted, does not
> > (and cannot) run "Apply Request Values" either.
> >
> > UIXSubform and "default"
> >
> > In some scenarios, there may be buttons (or other components that submit the
> > page) outside of the main content of a page. If this main content is in a
> > UIXSubform, it could not be fully processed whenever those buttons are
> > clicked, since those buttons aren't inside of the UIXSubform. To support
> > this scenario, ADF Faces supports a "default" property on UIXSubform. A
> > "default" subform behaves like any other subform in most respects, but if no
> > subforms are "submitted" - if no subform has an appropriate event come from
> > its children - then all "default" subforms act as if they are "submitted".
> >
> > The first paragraph seems to imply that just the Apply Request Values phase
> > will be executed for t

RE: multi validation in ADF Faces

Hi Martin,

it seems to me that the effect is the same as the one Jim observed, and
probably the  is broken somehow.

> myfaces sandbox s:subform 

thanks for the tip!

Frank Felix

-Original Message-
From: Martin Marinschek [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 24, 2006 12:11 AM
To: MyFaces Discussion
Subject: Re: multi  validation in ADF Faces

But really, the values can only get lost if you build up a new view.
You should just return e.g. "null" from your action-method if you don't want
a new view to be built.

regards,

Martin

On 2/23/06, Frank Felix Debatin <[EMAIL PROTECTED]> wrote:
>
> Hi Jim,
>
> just out of curiousity: why do you enclose the last commandbutton in a 
> ? What is the effect?
>
> I played around with subforms today, too, but failed to get what I 
> wanted to achieve.
>
> If you're interested, here is what I wanted to do. Originally I had:
>
> 
>
>...
>value="#{enableXYZ}"/>
>   
>...
>
>
> There is a problem with this: when clicking on the checkbox, the form 
> is validated. When the validation fails, the form is broken (checkbox 
> enabled though "XYZ parameter" field disabled.
>
> So, I thought I have to find a way to bypass the validation for the 
> autosubmit of the checkbox. Immediate=true didn't solve it, so I tried 
> to do the following with subforms:
>
>
> 
> 
>
>...
>   
>  value="#{enableXYZ}"/>
>
>
>...
>   
>
> Still, the validation happened on autoSubmit. When I put 
> default="false", then there was no validation, but on submit the 
> values of the first subform were not saved. After trying some more
different arrangements, I gave up.
>
> Frank Felix
>
>
>  
>  From: James Moores [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 23, 2006 3:35 PM
> To: MyFaces Discussion
> Subject: multi  validation in ADF Faces
>
>
>
> Hi Everyone,
>
> I'm having some problems with form validation in ADF.  I have a form 
> with multiple sections that need to be validated separately - the 
> reason is that some commandButtons do things like add a selection to a 
> list that is built up as the form is filled out (e.g. a list of 
> key-value properties where you can add a new key value pair or delete 
> existing ones in the list).  In those cases I don't want the main form
validation to happen and block submission.
> For a while I was using buttons with immediate="true", but that means 
> that the values that you are interested in don't get written into 
> their backing beans before your action method is called.  Now I was 
> getting around this by binding the control to a backing bean and 
> getting the value directly from the control object.  But I thought 
> that was a bit horrible - additionally if the field I need is a Choice 
> box then I can only get the index of the selected item and have to 
> look it up all over again.  That works, but I wanted to find a better 
> way.  I thought I had when I (again) tried using .  I'm trying
to do this (I've simplified it):
>
> 
>   
> 
> 
> 
> 
>   
>   
>   
> 
>
>
> 
>
> 
>   
> 
> 
> 
>   
> 
>   
>   
> 
> 
>
> 
>   
>   
>   
> 
>   
> 
>
> which all works great except that anything sitting in the input fields 
> of the subforms other than the one submitted is wiped.  The wierd 
> thing is that the fields in the other (non default=true) subforms stay 
> populated.  The reason I thought this would work is the docs:
>
> A UIXSubform will always allow the "Apply Request Values" phase to 
> execute for its children, even when not "submitted", but when not 
> "submitted", the "Process Validations" and "Update Model Values" 
> phases will be skipped. This differs from an ordinary form component, 
> which, when not submitted, does not (and cannot) run "Apply Request
Values" either.
>
> UIXSubform and "default"
>
> In some scenarios, there may be buttons (or other components that 
> submit the
> page) outside of the main content of a page. If this main content is 
> in a UIXSubform, it could not be fully processed whenever those 
> buttons are clicked, since those buttons aren't inside of the 
> UIXSubform. To support this scenario, ADF Faces supports a "default" 
> property on UIXSubform. A "default" subform behaves like any other 
> subform in most respects, but if no subforms are "submitted" - if no 
> subform has an appropriate event come from its children - then all
"default" subforms act as if they are "submitted".
>
> The first paragraph seems to imply that just the Apply Request Values 
> phase will be executed for the 'unsubmitted' subforms, but shouldn't 
> this be enough to maintain their values on the page? Am I missing
something?
> Anyone any ideas?
>
> Jim
> --
> Jim Moores


--

http://www.irian.at

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

Professional Support for Apache MyFaces


Re: Can I use JSF1.2 now

Thank you very much, Andrew Robinson.
You understanding is correct. This explaination is a good start point for me.

On 2/23/06, Andrew Robinson <[EMAIL PROTECTED]> wrote:
> Not 100% sure what you mean by a web layer, but I presume that you are
> refering to a new web project. I researched Struts, "Plain" JSF,
> JSF+Tiles, JSF+Facelets and finally settled on JSF+Facelets+Seam for
> my project.
>
> My home project is in development and is working fine. The only
> problems I have are when I I am working off of CVS/SVN latest to get
> the newest functionality. MyFaces 1.1.1 + Facelets 1.0.10 seems to be
> quite stable and my company is using that combination as well.
>
> The biggest issue/hurdle for me to deal with in development on both
> JSF as well as struts is that URLs may not be able to be bookmarked by
> users, as page validation occurs by posting back to the current URL
> before navigating to the new page (which is often done by a servlet
> forward and not a browser redirect).
>
> The learning curve on JBoss Seam is pretty steep for
> installation/setup, but JSF and facelets are pretty easy to understand
> if you are willing to do a bit of reading first (any of the online
> tutorials work, including Sun's).
>
> I was really hating JSF before I tried facelets. I don't recommend it.
> Tiles just doesn't work from an architectural perspective. Trying to
> work with view, subview and verbatim tags is ugly to be nice.
>
> Since pages contain no code like ASP, Perl, PHP, JSP, the pages are
> much more maintainable. The business code is nicely tucked away in
> Java beans (POJOs). I prefer JSF+Facelets over ASP.NET as well.
> ASP.NET has some powerful controls, but the binding is lackluster.
> ASP.NET also requires you to have backing code on every page, which
> maked it difficult to seperate out page developers from Java/code
> developers.
>
> The one thing I haven't heard too much about on these lists is
> performance for very large sites (I haven't heard either way - good or
> bad).
>
> Hope I answered your question instead of just babbling...
>
> On 2/22/06, Anthony Hong <[EMAIL PROTECTED]> wrote:
> > Hi Andrew Robinson,
> >
> > In your words, JSF with Facelet is good to use if start a new project
> > in web layer, Isn't it?
> > Becuase I am going to have a new project and we want to use something
> > new in web Layer. I want to know more about JSF in real project
> > whether we can start use it or not.
> > Thanks.
> >
> > On 2/22/06, Andrew Robinson <[EMAIL PROTECTED]> wrote:
> > > If you want JSF 1.2 and JSTL support I strongly recommend facelets.
> > > You can have your own tag handler for JSTL tags that are not yet
> > > supported, and there are several already supported. They tag handlers
> > > are processed before the JSF components, but other than that item, it
> > > is possible to feed EL statements into JSTL tags. For example:
> > >
> > > 
> > > 
> > > 
> > > 
> > >
> > > -Andrew
> > >
> > > FYI - I can't image using JSF without facelets. IMO, JSF is useless
> > > without facelets. Sun should make it part of the spec (IMO of course).
> > >
> > > On 2/22/06, Werner Punz <[EMAIL PROTECTED]> wrote:
> > > > Anthony Hong schrieb:
> > > > > I knew that JSF have something like tableset to render table like 
> > > > > view easily.
> > > > > But sometime I have to write html table by self to offer flexibility.
> > > > >
> > > > > I saw Facelet to use with JSF as a view, Is it useful?
> > > > >
> > > > ah one thing, I do not no if there are facelet descriptors for the
> > > > jsf:html lib in existence so combining both might become problematic.
> > > >
> > > >
> > >
> >
> >
> > --
> >
> > Anthony Hong
> >
>


--

Anthony Hong


Re: t:inputCalendar component position

Since I started using the nightly builds, I am having a similar
problem.  The calendar was popping up much lower than it did in the
previous stable builds.  I noticed a comment in the issue tracking
that the positioning was fixed on 02/22
(http://issues.apache.org/jira/browse/MYFACES-635), but the latest
nightly build is worse for me.  The calendar does not display at all. 
I get a javascript error.  I am using it in a scrolling div.

On 2/23/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi,
>   I am trying to insert a t:inputCalendar component in my jsp page with
> faces. Everything is fine, but when I click the button beside the input
> text, it pops up the calendar at the top of the page above everything. I
> want it to pop up just beside or below the button to select the date. Is
> there any attribute in the tag which takes care of it or do I need to change
> the javascript code in the popcalendar.js file?
>
> Can somebody let me know how can it work out
>
> Thanks for any feedback.
>
>  Thanks
> Latha
>
> 
>
>
>
>
>  This e-mail and any attachments are intended only for the
>  individual or company to which it is addressed and may contain
>  information which is privileged, confidential and prohibited from
>  disclosure or unauthorized use under applicable law. If you are
>  not the intended recipient of this e-mail, you are hereby notified
>  that any use, dissemination, or copying of this e-mail or the
>  information contained in this e-mail is strictly prohibited by the
>  sender. If you have received this transmission in error, please
>  return the material received to the sender and delete all copies
>  from your system.


Linkage error driving me nuts

Environment: MyFaces 1.1.1
JBoss-Seam CVS
Facelets 1.0.10
jsf-comp on-load and taghandlers

I was working fine on MyFaces Current SVN but decided due to
instability and bugs that I should go back to MyFaces 1.1.1. So I
cleaned out my lib folder, and rebuilt, redeployed, etc. I have tried
every combination of myfaces jars and such but no matter what I do, I
get the following error when I hit my jsf page:

java.lang.LinkageError: loader constraints violated when linking
javax/servlet/jsp/el/VariableResolver class
org.apache.myfaces.el.ELParserHelper.replaceSuffixes(ELParserHelper.java:376)
org.apache.myfaces.el.ELParserHelper.replaceSuffixes(ELParserHelper.java:334)
org.apache.myfaces.el.ELParserHelper.replaceSuffixes(ELParserHelper.java:287)
org.apache.myfaces.el.ELParserHelper.parseExpression(ELParserHelper.java:90)
org.apache.myfaces.el.ValueBindingImpl$2.newInstance(ValueBindingImpl.java:82)
org.apache.myfaces.util.BiLevelCacheMap.get(BiLevelCacheMap.java:123)
org.apache.myfaces.el.ValueBindingImpl.(ValueBindingImpl.java:115)
org.apache.myfaces.el.MethodBindingImpl.(MethodBindingImpl.java:58)
org.apache.myfaces.application.ApplicationImpl.createMethodBinding(ApplicationImpl.java:605)
net.sf.jsfcomp.ext.onload.OnLoadPhaseListener.processRule(OnLoadPhaseListener.java:191)
net.sf.jsfcomp.ext.onload.OnLoadPhaseListener.processOnLoad(OnLoadPhaseListener.java:155)
net.sf.jsfcomp.ext.onload.OnLoadPhaseListener.beforePhase(OnLoadPhaseListener.java:108)
org.apache.myfaces.lifecycle.LifecycleImpl.informPhaseListenersBefore(LifecycleImpl.java:520)
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:342)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:23)
org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:44)

I just can't figure it out. I don't know why backing out myfaces would
have caused this.

My lib directory:
-rw-r--r--  1 andrew users 435K 2006-02-23 22:03 antlr-2.7.6rc1.jar
-rw-r--r--  1 andrew users  17K 2006-02-23 22:03 asm-attrs.jar
-rw-r--r--  1 andrew users  26K 2006-02-23 22:03 asm.jar
-rw-r--r--  1 andrew users  60K 2006-02-23 22:03 bethany.jar
-rw-r--r--  1 andrew users 280K 2006-02-23 22:03 cglib-2.1.1.jar
-rw-r--r--  1 andrew users 518K 2006-02-23 22:03 collections-generic-4.0.jar
-rw-r--r--  1 andrew users  48K 2006-02-23 22:03 common-annotations.jar
-rw-r--r--  1 andrew users 116K 2006-02-23 22:03 commons-beanutils.jar
-rw-r--r--  1 andrew users  29K 2006-02-23 22:03 commons-codec-1.2.jar
-rw-r--r--  1 andrew users  46K 2006-02-23 22:03 commons-codec-1.3.jar
-rw-r--r--  1 andrew users 162K 2006-02-23 22:03 commons-collections.jar
-rw-r--r--  1 andrew users 165K 2006-02-23 22:03 commons-digester-1.6.jar
-rw-r--r--  1 andrew users 107K 2006-02-23 22:03 commons-digester.jar
-rw-r--r--  1 andrew users  26K 2006-02-23 22:03 commons-logging-api.jar
-rw-r--r--  1 andrew users  38K 2006-02-23 22:03 commons-logging.jar
-rw-r--r--  1 andrew users 167K 2006-02-23 22:03 concurrent.jar
-rw-r--r--  1 andrew users 408K 2006-02-23 22:03 dom4j.jar
-rw-r--r--  1 andrew users  47K 2006-02-23 22:03 ehcache.jar
-rw-r--r--  1 andrew users  46K 2006-02-23 22:03 ejb3-persistence.jar
-rw-r--r--  1 andrew users  24K 2006-02-23 22:03 el-api.jar
-rw-r--r--  1 andrew users  98K 2006-02-23 22:03 el-ri.jar
-rw-r--r--  1 andrew users 4.2K 2006-02-23 22:03 embedded-ejb-conf.jar
-rw-r--r--  1 andrew users 404K 2006-02-23 22:03 hibernate-annotations.jar
-rw-r--r--  1 andrew users  78K 2006-02-23 22:03 hibernate-entitymanager.jar
-rw-r--r--  1 andrew users 1.9M 2006-02-23 22:03 hibernate3.jar
-rw-r--r--  1 andrew users 616K 2006-02-23 22:03 hsqldb.jar
-rw-r--r--  1 andrew users 416K 2006-02-23 22:03 javassist.jar
-rw-r--r--  1 andrew users  50K 2006-02-23 22:03 javax.servlet.jsp.jar
-rw-r--r--  1 andrew users  28K 2006-02-23 22:03 jboss-annotations-ejb3.jar
-rw-r--r--  1 andrew users 846K 2006-02-23 22:03 jboss-aop-jdk50.jar
-rw-r--r--  1 andrew users 350K 2006-02-23 22:03 jboss-aspect-library-jdk50.jar
-rw-r--r--  1 andrew users  75K 2006-02-23 22:03 jboss-common-jdbc-wrapper.jar
-rw-r--r--  1 andrew users 425K 2006-02-23 22:03 jboss-common.jar
-rw-r--r--  1 andrew users  59K 2006-02-23 22:03 jboss-container.jar
-rw-r--r--  1 andrew users  20K 2006-02-23 22:03 jboss-dependency.jar
-rw-r--r--  1 andrew users 564K 2006-02-23 22:03 jboss-ejb3.jar
-rw-r--r--  1 andrew users  19K 2006-02-23 22:03 jboss-ejb3x.jar
-rw-r--r--  1 andrew users 195K 2006-02-23 22:03 jboss-j2ee.jar
-rw-r--r--  1 andrew users 354K 2006-02-23 22:03 jboss-j2se.jar
-rw-r--r--  1 andrew users 181K 2006-02-23 22:03 jboss-jca.jar
-rw-r--r--  1 andrew users  11K 2006-02-23 22:03 jboss-local-jdbc.jar
-rw-r--r--  1 andrew users 295K 2006-02-23 22:03 jboss-microcontainer.jar
-rw-r--r--  1 andrew users 449K 2006-02-23 22:03 jboss-remoting.jar
-rw-r--r--  1 andrew users 4.2K 2006-02-23 22:03 jboss-seam-ui.jar
-rw-r--r--  1 andrew users 194K

Re: t:inputCalendar component position

don't use position:absolute;


Re: tobato t:sheet sorting

Hi,
 
I am very interested in this topic too. I found the example in MyFaces, the sort method had been called three time when you click a column header. Do you know why it had to be called three times? It seems a bug to me.

 
Thanks,
Emily 
On 2/23/06, Volker Weber <[EMAIL PROTECTED]> wrote:
Hi Iryna,Iryna Stetska wrote:> We are using t:sheet component.> We need to implement sortable column in it which would perform sorting
> by clicking on the column header, while sorting will be performed on> the server side. (We don't want to use standard tobago sheet sorting> for substantial reason).>>> Can we have some event handler implemented for clicking the t:sheet
> column header?sorry, no. There is currently no such thing.Bernd and i had talked about change the sorting to an eventListenerapproach. But IMO there is nothing concrete done yet.Regards,
Volker--Don't answer to From: address!Mail to this account are droped if not recieved via mailinglist.To contact me direct create the mail address byconcatenating my forename to my senders domain.



Re: Linkage error driving me nuts

What happens when you replace el-ri.jar w/ commons-el.jar ?

Dennis Byrne

>-Original Message-
>From: Andrew Robinson [mailto:[EMAIL PROTECTED]
>Sent: Friday, February 24, 2006 12:15 AM
>To: 'MyFaces Discussion'
>Subject: Linkage error driving me nuts
>
>Environment: MyFaces 1.1.1
>JBoss-Seam CVS
>Facelets 1.0.10
>jsf-comp on-load and taghandlers
>
>I was working fine on MyFaces Current SVN but decided due to
>instability and bugs that I should go back to MyFaces 1.1.1. So I
>cleaned out my lib folder, and rebuilt, redeployed, etc. I have tried
>every combination of myfaces jars and such but no matter what I do, I
>get the following error when I hit my jsf page:
>
>java.lang.LinkageError: loader constraints violated when linking
>javax/servlet/jsp/el/VariableResolver class
>org.apache.myfaces.el.ELParserHelper.replaceSuffixes(ELParserHelper.java:376)
>org.apache.myfaces.el.ELParserHelper.replaceSuffixes(ELParserHelper.java:334)
>org.apache.myfaces.el.ELParserHelper.replaceSuffixes(ELParserHelper.java:287)
>org.apache.myfaces.el.ELParserHelper.parseExpression(ELParserHelper.java:90)
>org.apache.myfaces.el.ValueBindingImpl$2.newInstance(ValueBindingImpl.java:82)
>org.apache.myfaces.util.BiLevelCacheMap.get(BiLevelCacheMap.java:123)
>org.apache.myfaces.el.ValueBindingImpl.(ValueBindingImpl.java:115)
>org.apache.myfaces.el.MethodBindingImpl.(MethodBindingImpl.java:58)
>org.apache.myfaces.application.ApplicationImpl.createMethodBinding(ApplicationImpl.java:605)
>net.sf.jsfcomp.ext.onload.OnLoadPhaseListener.processRule(OnLoadPhaseListener.java:191)
>net.sf.jsfcomp.ext.onload.OnLoadPhaseListener.processOnLoad(OnLoadPhaseListener.java:155)
>net.sf.jsfcomp.ext.onload.OnLoadPhaseListener.beforePhase(OnLoadPhaseListener.java:108)
>org.apache.myfaces.lifecycle.LifecycleImpl.informPhaseListenersBefore(LifecycleImpl.java:520)
>org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:342)
>javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
>org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:23)
>org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:44)
>
>I just can't figure it out. I don't know why backing out myfaces would
>have caused this.
>
>My lib directory:
>-rw-r--r--  1 andrew users 435K 2006-02-23 22:03 antlr-2.7.6rc1.jar
>-rw-r--r--  1 andrew users  17K 2006-02-23 22:03 asm-attrs.jar
>-rw-r--r--  1 andrew users  26K 2006-02-23 22:03 asm.jar
>-rw-r--r--  1 andrew users  60K 2006-02-23 22:03 bethany.jar
>-rw-r--r--  1 andrew users 280K 2006-02-23 22:03 cglib-2.1.1.jar
>-rw-r--r--  1 andrew users 518K 2006-02-23 22:03 collections-generic-4.0.jar
>-rw-r--r--  1 andrew users  48K 2006-02-23 22:03 common-annotations.jar
>-rw-r--r--  1 andrew users 116K 2006-02-23 22:03 commons-beanutils.jar
>-rw-r--r--  1 andrew users  29K 2006-02-23 22:03 commons-codec-1.2.jar
>-rw-r--r--  1 andrew users  46K 2006-02-23 22:03 commons-codec-1.3.jar
>-rw-r--r--  1 andrew users 162K 2006-02-23 22:03 commons-collections.jar
>-rw-r--r--  1 andrew users 165K 2006-02-23 22:03 commons-digester-1.6.jar
>-rw-r--r--  1 andrew users 107K 2006-02-23 22:03 commons-digester.jar
>-rw-r--r--  1 andrew users  26K 2006-02-23 22:03 commons-logging-api.jar
>-rw-r--r--  1 andrew users  38K 2006-02-23 22:03 commons-logging.jar
>-rw-r--r--  1 andrew users 167K 2006-02-23 22:03 concurrent.jar
>-rw-r--r--  1 andrew users 408K 2006-02-23 22:03 dom4j.jar
>-rw-r--r--  1 andrew users  47K 2006-02-23 22:03 ehcache.jar
>-rw-r--r--  1 andrew users  46K 2006-02-23 22:03 ejb3-persistence.jar
>-rw-r--r--  1 andrew users  24K 2006-02-23 22:03 el-api.jar
>-rw-r--r--  1 andrew users  98K 2006-02-23 22:03 el-ri.jar
>-rw-r--r--  1 andrew users 4.2K 2006-02-23 22:03 embedded-ejb-conf.jar
>-rw-r--r--  1 andrew users 404K 2006-02-23 22:03 hibernate-annotations.jar
>-rw-r--r--  1 andrew users  78K 2006-02-23 22:03 hibernate-entitymanager.jar
>-rw-r--r--  1 andrew users 1.9M 2006-02-23 22:03 hibernate3.jar
>-rw-r--r--  1 andrew users 616K 2006-02-23 22:03 hsqldb.jar
>-rw-r--r--  1 andrew users 416K 2006-02-23 22:03 javassist.jar
>-rw-r--r--  1 andrew users  50K 2006-02-23 22:03 javax.servlet.jsp.jar
>-rw-r--r--  1 andrew users  28K 2006-02-23 22:03 jboss-annotations-ejb3.jar
>-rw-r--r--  1 andrew users 846K 2006-02-23 22:03 jboss-aop-jdk50.jar
>-rw-r--r--  1 andrew users 350K 2006-02-23 22:03 jboss-aspect-library-jdk50.jar
>-rw-r--r--  1 andrew users  75K 2006-02-23 22:03 jboss-common-jdbc-wrapper.jar
>-rw-r--r--  1 andrew users 425K 2006-02-23 22:03 jboss-common.jar
>-rw-r--r--  1 andrew users  59K 2006-02-23 22:03 jboss-container.jar
>-rw-r--r--  1 andrew users  20K 2006-02-23 22:03 jboss-dependency.jar
>-rw-r--r--  1 andrew users 564K 2006-02-23 22:03 jboss-ejb3.jar
>-rw-r--r--  1 andrew users  19K 2006-02-23 22:03 jboss-ejb3x.jar
>-rw-r--r--  1 andrew users 195K 2006-02-23 22:03 jboss-j2ee.jar
>-rw-r--r--  1 andrew users 354K 2006-02-23 22:03 jboss-j2se.jar
>-rw-r--r--  1 andrew users 181K 2006

Re: Any inside of a very slow page loading of in Weblogic 8.1 sp4?

Thanks Werner for the reply. Please see my reply inline.
On 2/19/06, Werner Punz <[EMAIL PROTECTED]> wrote:
 
Good question, not too many in here use Weblogic (most people usuallyeither are on a plain Tomcat setup) 
Which strategies do you use for storing the pagination data, do you useown own datamodel, which basically delivers one page after the other,or do you store everything in a big datastructure served to the
datatable immediately.
 
 
I am doing the way mentioned at MyFaces wiki page. I use one query to get all data out, then only takes page size data to the web(such as 20 rows for example). The subsequence paginating will get the necessary data from the memory. Do you see any memory or performance issues in doing this way? 

If you do the second, your data structure might become to big for inmemory delivery. I do not know Weblogic, but is there a change 
that the app server caches some of that stuff into a physical swap file, or is there a chance that serialisation, it also could be thatserialisation needs longer on Beas server.
 
  I haven't found out the solutions. I will open a case to BEA and keep you posted.
Try following strategies,a) Increase the mem of the app server
 
  I have tried to increase app server memory to 1G, it didn't help.
b) Try a different data serving strategy, moving to an explicit page serving data model might be exactly what you need (one request
per page with the exact number of elements displayed in the page)There is a wiki entry on how to implement such a datamodel in themyfaces wiki. 
 
I am trying this one now. The only problem running into is the sorting. I need to do the server side sorting, It seems no places to make such query since each click of sorting column, it makes three calls to getData() method.  Don't know how it will react on WLS yet. 

c) If nothing works out, you have to start the good ole profiler tosee what is going on.
 
  Yeah, that's my last step. Thanks for your help.
 
Emily
WernerEmily Gu schrieb:> Hi,>> I have a  deployed on Weblogic 
8.1 sp4. The table is> bounded to a backing bean in session. It is so slow when I click to next> page. The data should be in memory already. It took no time in Tomcat> when paginating to the next page. But Weblogic 
8.1 sp4 is thinking very> long to get to next page. Do you know anything I could be done wrong in> server setup in causing this? I know my question is off topic. But BEA> seems have the worse support. I have never gotten any answers from them. 
> Any help is very much appreciated.>> Thanks,> Emily


Where to get facelet xsd defintions

I saw namespace like this in facelet example, but I can not get its
element definition, xmlns:ui="http://java.sun.com/jsf/facelets";

Where can I get this dtd or xsd

--

Anthony Hong


Re: problem deploying on Weblogic 8.1 sp2

jsp-api.jar, servlet-api.jar are going to come with any web container.

Dennis Byrne

>-Original Message-
>From: Emily Gu [mailto:[EMAIL PROTECTED]
>Sent: Friday, February 24, 2006 01:05 AM
>To: 'MyFaces Discussion'
>Subject: Re: problem deploying on Weblogic 8.1 sp2
>
>It seems you have jar file conflicting. Make sure you are using JSTL for
>servlet 2.3 and add all jar files (jsp-api.jar, servlet-api.jar,
>standard.jar), if you don't already have them.
>
>Emily
>On 2/22/06, Leyzerzon, Simeon <[EMAIL PROTECTED]> wrote:
>>
>> Is this preventable?  Any solution? thanks
>>
>>
>> -Original Message-
>> From: Dennis Byrne [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, February 22, 2006 2:23 PM
>> To: MyFaces Discussion
>> Subject: Re: problem deploying on Weblogic 8.1 sp2
>>
>>
>> >SEVERE: Unable to parse web.xml
>> >java.net.UnknownHostException: java.sun.com
>>
>> Your app is trying to go to the Internet in order to get the DTD/XSD for
>> the dep. desc.
>>
>> Dennis Byrne
>>
>> >-Original Message-
>> >From: Leyzerzon, Simeon [mailto:[EMAIL PROTECTED]
>> >Sent: Wednesday, February 22, 2006 02:16 PM
>> >To: 'users@myfaces.apache.org'
>> >Subject: problem deploying on Weblogic 8.1 sp2
>> >
>> >Hi,
>> >
>> >I'm attempting to deploying a blank.war file supplied with the examples
>> as a proof of concept on Weblogic 8.1 sp2.
>> >
>> >Here is an excerpt from the WL log file:
>> >
>>
>> >==
>> >
>> >Feb 21, 2006 3:08:12 PM org.apache.myfaces.webapp.MyFacesServlet init
>> >WARNING: ServletContextListener not yet called
>> >Feb 21, 2006 3:08:12 PM 
>> >org.apache.myfaces.config.FacesConfiguratorfeedStandard
>> >Config
>> >INFO: Reading standard config
>> org/apache/myfaces/resource/standard-faces-config.
>> >xml
>> >Feb 21, 2006 3:08:12 PM 
>> >org.apache.myfaces.config.FacesConfiguratorfeedClassloa
>> >derConfigurations
>> >INFO: Reading config
>> zip:C:/bea/user_projects/domains/mydomain/myserver/.wlnotde
>>
>> >lete/extract/myserver__appsdir_blank_war_blank/jarfiles/WEB-INF/lib/sandbox17427
>> >.jar!/META-INF/faces-config.xml
>> >Feb 21, 2006 3:08:12 PM 
>> >org.apache.myfaces.config.FacesConfiguratorfeedClassloa
>> >derConfigurations
>> >INFO: Reading config
>> zip:C:/bea/user_projects/domains/mydomain/myserver/.wlnotde
>>
>> >lete/extract/myserver__appsdir_blank_war_blank/jarfiles/WEB-INF/lib/tomahawk1742
>> >9.jar!/META-INF/faces-config.xml
>> >Feb 21, 2006 3:08:13 PM 
>> >org.apache.myfaces.config.FacesConfiguratorfeedContextS
>> >pecifiedConfig
>> >INFO: Reading config /WEB-INF/examples-config.xml
>> >Feb 21, 2006 3:08:13 PM org.apache.myfaces.util.LocaleUtils toLocale
>> >SEVERE: Locale name null or empty, ignoring
>> >Feb 21, 2006 3:08:17 PM org.apache.myfaces.webapp.webxml.WebXmlParserparse
>> >SEVERE: Unable to parse web.xml
>> >java.net.UnknownHostException: java.sun.com
>> >at java.net.InetAddress.getAllByName0(InetAddress.java:1004)
>> >at java.net.InetAddress.getAllByName0(InetAddress.java:969)
>> >at java.net.InetAddress.getAllByName(InetAddress.java:963)
>> >at weblogic.net.http.HttpClient.openServer(HttpClient.java:263)
>> >at weblogic.net.http.HttpClient.openServer(HttpClient.java:327)
>> >at weblogic.net.http.HttpClient.(HttpClient.java:128)
>> >at weblogic.net.http.HttpURLConnection.getHttpClient(
>> HttpURLConnection.j
>> >ava:127)
>> >at weblogic.net.http.HttpURLConnection.getInputStream
>> (HttpURLConnection.
>> >java:329)
>> >at java.net.URL.openStream(URL.java:960)
>> >at weblogic.apache.xerces.impl.XMLEntityManager.startEntity
>> (XMLEntityMan
>> >ager.java:836)
>> >at weblogic.apache.xerces.impl.XMLEntityManager.startDTDEntity
>> (XMLEntity
>> >Manager.java:796)
>> >at weblogic.apache.xerces.impl.XMLDTDScannerImpl.setInputSource
>> (XMLDTDSc
>> >annerImpl.java:275)
>> >at
>> weblogic.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.disp
>> >atch(XMLDocumentScannerImpl.java:841)
>> >at
>> weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocume
>> >nt(XMLDocumentFragmentScannerImpl.java:329)
>> >at weblogic.apache.xerces.parsers.DTDConfiguration.parse
>> (DTDConfiguratio
>> >n.java:525)
>> >at weblogic.apache.xerces.parsers.DTDConfiguration.parse
>> (DTDConfiguratio
>> >n.java:581)
>> >at weblogic.apache.xerces.parsers.XMLParser.parse(XMLParser.java
>> :152)
>> >at weblogic.apache.xerces.parsers.DOMParser.parse(DOMParser.java
>> :257)
>> >at weblogic.apache.xerces.jaxp.DocumentBuilderImpl.parse
>> (DocumentBuilder
>> >Impl.java:201)
>> >at weblogic.xml.jaxp.RegistryDocumentBuilder.parse
>> (RegistryDocumentBuild
>> >er.java:149)
>> >at org.apache.myfaces.webapp.webxml.WebXmlParser.parse(
>> WebXmlParser.java
>> >:89)
>> >at org.apache.myfaces.webapp.webxml.WebXml.init(WebXml.java:135)
>>