strange problem with ADF faces and tomcat versions

2006-09-30 Thread Legolas Woodland
Hi
thank you for reading my post
i have faced a very strange problem with ADF faces and tomcat.

is there any condition that an ADF Faces  application works fine in my
computer (on both OC4J and TOMCAT ) but does not works in production
tomcat ?
indeed i managed all database stuff and also i add all adf installer
(ADF faces libraries)library to my application web-inf/lib folder , now
it works fine in local tomcat but when i upload it to server none of
buttons or action link works.

i tried to debug it using firefox javascript console and i find the
following stuff :

Error: _submitFormCheck is not defined
Source File: http://www.mydomain.com/app/faces/index.jsp
Line: 190

Error: _checkLoad is not defined
Source File: http://www.mydomain.com/app/faces/index.jsp
Line: 1

Error: _checkUnload is not defined
Source File: http://www.mydomain.com/app/faces/index.jsp
Line: 1

Error: _defaultTZ is not defined
Source File: http://www.mydomain.com/app/work_services.jsp
Line: 20


can some one please help me with this problem ?
I am really stocked with this.

thank you.


Re: can we post to another web application from a button action ?

2006-09-27 Thread Legolas Woodland
Thank you Andrew.
I should show that page to user because user will continue on that page
until his/her operation complete
that web site will send user back to my web site.
url will be dynamic because i should pass some parameters to that web page.
Andrew Robinson wrote:
 Do you want to send him/her to that page or do you want to just post
 data and ignore the response from that website?

 If you want to send them, create a navigation rule with the full URL
 (if it is static) with a redirect set. Then return that action
 result.

 If you want to send them but the URL is dynamic:
 1) create a custom navigation handler that performs a redirect
 -or-
 2) redirect and return null:

 public String myAction()
 {
  // your business code

  FacesContext facesContext = FacesContext.getCurrentInstance();
  facesContext.getExternalContext().redirect(someURL);
  facesContext.responseComplete();
  return null;
 }

 On 9/26/06, Legolas Woodland [EMAIL PROTECTED] wrote:
 Thank you for reply.
 what about sending them from server side ?
 if i send user to that url from serverside i can make my database change
 and then send him/her to other web site.
 can i have an action for outputlink and also send the user to other web
 site?
 for example in action binding i made database change and when he/she
 clicked on it i post the parameter to that website?

 thanks

 Andrew Robinson wrote:
  Do you want to post from the client or the server? If from the client,
  just use the normal method. You can use h:outputLink with embedded
  f:param elements.
 
  On 9/26/06, Legolas Woodland [EMAIL PROTECTED] wrote:
 
   Hi
   Thank you for reading my post
   I need to use post method to send some parameters to a web site,
   now , in my web application which is based on jsf , i do not know
  how i can
  do this as parameters has their name and also i should compute their
  values
  before i post them to other web site.
 
   should we do this in button action method or there are some other
 ways?
   thanks
 
 






how i can forward to a jsf page from a servlet ?

2006-09-27 Thread Legolas Woodland
Hi
Thank you for reading my post
how i can forward to a jsf page in my web application  from a servlet ?

thanks


why i can not use f:param inside an html form?

2006-09-27 Thread Legolas Woodland
Hi
Thank you for reading my post
what is wrong with the following code ?

[code]

form action=https://www.3rdpartyWeb.com/CardServices/controller;
method=GET enctype=multipart/form-data
   name=submissionform
f:param value=#{Session.MID} name=MID id=MID/
f:param value=#{ButtonsActionListener.reservationNumber}
name=ResNum id=ResNum/
f:param value=#{Session.redirectURL} name=RedirectURL
id=RedirectURL/
f:param value=#{ButtonsActionListener.total_price} name=Amount
id=Amount/
  
   /form
SCRIPT type=text/javascript
document.forms[submissionform].submit();
/SCRIPT
[/code]

while both  ButtonsActionListener , Session are managed beans ,
my question is , does the above form will post correctly to the named
url along with parameters ?
if not , how i can make this possible , i should say that i submit the
form using javascript and no user interaction should be involved.

do i used a correct design for this ?
I should say that : i used some java script to show a progress bar in
this page until the page submit to 3rd party web site.



thanks




can we set some request parameter using an action method ?

2006-09-27 Thread Legolas Woodland
Hi
Thank you for reading my post
can we set some request parameter using action methods?


thanks


Re: can we set some request parameter using an action method ?

2006-09-27 Thread Legolas Woodland
Thank you for reply , but it returns  the following exception


Caused by: java.lang.UnsupportedOperationException
at java.util.AbstractMap.put(AbstractMap.java:228)
at
webui.common.ButtonsActionListener.approve_bill(ButtonsActionListener.java:338)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
... 28 more


is there anything that i can do for this ?

Grant Smith wrote:
 I haven't tried this, but how about something like:

 FacesContext.getCurrentInstance
 ().getExternalContext().getRequestParameterMap().put(key,value);

 On 9/27/06, Legolas Woodland [EMAIL PROTECTED] wrote:

 Hi
 Thank you for reading my post
 can we set some request parameter using action methods?


 thanks







problem with using comandLink and navigation to 3rd party web site

2006-09-27 Thread Legolas Woodland
Hi
Thank you for reading this post.
I was in a need for an automatic form submission when user reach payment
page , but as i could not handle it in that way i tried to use a
commandLink to
submit the form and redirect the user to 3rdparty web site , here is
what i have done and the exception that i get
this is jsp file snippet
[code]
   af:form

center
af:commandLink text=commandLink 1 action=payment 
f:param  value=#{Session.MID} name=MID id=MID /
f:param value=#{ButtonsActionListener.reservationNumber}
name=ResNum id=ResNum/
f:param value=#{Session.redirectURL} name=RedirectURL
id=RedirectURL/
f:param value=#{ButtonsActionListener.total_price} name=Amount
id=Amount/
   /af:commandLink
   /center
   
   /af:form
[/code]

also i defined  a navigation case like
[code]
navigation-case
  from-outcomepayment/from-outcome
 
to-view-idhttps://www.3rdpartywebsite.com/CardServices/controller/to-view-id
  redirect/
/navigation-case

[/code]

so it should work in a way that i need but it just retun an
exceptionlike this :

[code]
java.lang.IllegalArgumentException: Illegal view ID
'https://www.3rdparty.com/CardServices/controller'.  The ID must begin
with '/'
at
com.sun.faces.application.ViewHandlerImpl.getActionURL(ViewHandlerImpl.java:443)
at
oracle.adfinternal.view.faces.application.ViewHandlerImpl.getActionURL(ViewHandlerImpl.java:100)
at
com.sun.faces.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:114)
at
oracle.adfinternal.view.faces.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:29)
at
com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:89)
at
oracle.adf.view.faces.component.UIXCommand.broadcast(UIXCommand.java:211)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
at
javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
at
com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
at
oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)
at
oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)
at
oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)
at
oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
at
oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:332)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:627)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
at
oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
[/code]


do you know what should i do ?

thanks



how i can post a form with some parameters using JSF ?

2006-09-27 Thread Legolas Woodland




Hi
thank you for reading my post
how i can post a form using jsf ?
I need to have a form , i should put some attribute (parameters) inside
the form
and then submit that form using post method .
indeed the form should have an action which is the 3rdparty web site
url 
i also calculate some parameters that i should pass to 3rdparty web
site in previous action method and put them all in some managed
beans.
now what i can not resolve is about , JSF forms that does not have
action attribute.

can some one help me with this ?

thanks




how i can post a form with some parameters using JSF ?

2006-09-27 Thread Legolas Woodland




Hi
thank you for reading my post
how i can post a form using jsf ?
I need to have a form , i should put some attribute (parameters) inside
the form
and then submit that form using post method .
indeed the form should have an action which is the 3rdparty web site
url 
i also calculate some parameters that i should pass to 3rdparty web
site in previous action method and put them all in some managed
beans.
now what i can not resolve is about , JSF forms that does not have
action attribute.

can some one help me with this ?

thanks




can we post to another web application from a button action ?

2006-09-26 Thread Legolas Woodland




Hi
Thank you for reading my post
I need to use post method to send some parameters to a web site,
now , in my web application which is based on jsf , i do not know how i
can do this as parameters has their name and also i should compute
their values before i post them to other web site.

should we do this in button action method or there are some other ways?
thanks




Re: can we post to another web application from a button action ?

2006-09-26 Thread Legolas Woodland
Thank you for reply.
what about sending them from server side ?
if i send user to that url from serverside i can make my database change
and then send him/her to other web site.
can i have an action for outputlink and also send the user to other web
site?
for example in action binding i made database change and when he/she
clicked on it i post the parameter to that website?

thanks

Andrew Robinson wrote:
 Do you want to post from the client or the server? If from the client,
 just use the normal method. You can use h:outputLink with embedded
 f:param elements.

 On 9/26/06, Legolas Woodland [EMAIL PROTECTED] wrote:

  Hi
  Thank you for reading my post
  I need to use post method to send some parameters to a web site,
  now , in my web application which is based on jsf , i do not know
 how i can
 do this as parameters has their name and also i should compute their
 values
 before i post them to other web site.

  should we do this in button action method or there are some other ways?
  thanks





how to access a managed bean from a button action listener ?

2006-09-21 Thread Legolas Woodland
Hi
thank you for reading my post
how i can access a managed bean from a button action listener ?
for example i have a managed bean named session and its scope is session
, i used it to store user details until he/she logout
and when he/she pressed the logout button i need to change some of that
managed bean property ,
can you please tell me how i can do it ?
I also need it for time that user press the login button.
thanks


Does file upload component works inside a jsf portlet ?

2006-05-04 Thread Legolas Woodland

Hi
Thank you for reading my post
Does file upload component works inside a portlet ?

thanks


Re: Does file upload component works inside a jsf portlet ?

2006-05-04 Thread Legolas Woodland
Thank you for reply ,
but, is there any solution to upload a file inside a jsf based portlet ?
On 5/4/06, Mike Kienenberger [EMAIL PROTECTED] wrote:
On 5/4/06, Legolas Woodland [EMAIL PROTECTED] wrote:
 Thank you for reading my post Does file upload component works inside a portlet ?I'm pretty sure that file upload requires the extensions filter.servlet filters don't work with portlets.



Re: Does file upload component works inside a jsf portlet ?

2006-05-04 Thread Legolas Woodland
thanks for reply.
Can you help me with that phase listener ?
where i can find some resource about this ?
Thanks
On 5/4/06, Mike Kienenberger [EMAIL PROTECTED] wrote:
I think adffaces has an upload component.Your other option is to write a phase listener that performs all of
the same processes that the extension filter does.On 5/4/06, Legolas Woodland [EMAIL PROTECTED] wrote: Thank you for reply , but, is there any solution to upload a file inside a jsf based portlet ?
 On 5/4/06, Mike Kienenberger [EMAIL PROTECTED] wrote:  On 5/4/06, Legolas Woodland [EMAIL PROTECTED]
 wrote:   Thank you for reading my post   Does file upload component works inside a portlet ?   I'm pretty sure that file upload requires the extensions filter.
  servlet filters don't work with portlets. 


Re: [OT]Problem with accessing form Element using javaScript

2006-04-02 Thread Legolas Woodland




Martin Marinschek wrote:

  Co-ol!

Martin tries to learn one thing a day, thanks Gerald for helping him
out with today. style.cssText, a-ha.

regards,

Martin

On 4/1/06, Gerald Mllan [EMAIL PROTECTED] wrote:
  
  
I believe you can also access the style attribute over:

elem.style.cssText = "...";

this should also work.

cheers,

Gerald

On 4/1/06, Laurie Harper [EMAIL PROTECTED] wrote:

    
      Legolas Woodland wrote:
  
  
Hi
thank you for reading my post.
I have this problem in my web application :
generated html which i view in my browser has this :

[code]

span id="form1:staticText8" style="border-width: 1px; border-style:
solid; border-color: rgb(0, 0, 0) rgb(0, 0, 0) rgb(0, 0, 0) rgb(0, 0,
0); height: 15px; left: 23px; top: 392px; position: absolute; width:
145px"My test Value/span
[/code]

In my _javascript_ function i have:

[code]
function setNewColors(obj)
{
if(obj=='Yellow'){
document.getElementById("form1:statictext8").style =" left: 25px; top:
383px; position: absolute; width: 143px; border-width: 1px;
border-style: solid; border-color:#fdffca; background-color:#fdffca;
color: #00;";
}
}
[/code]

i trigger the color change function in :
[code]
select style="left: 264px; top: 240px; position: absolute; width:
288px" class="MnuStd" id="form1:dropDown1" name="form1:dropDown1"
size="1"

[/code]

When i select yellow from the drop down box , it call color change but
in _javascript_ console of FireFox i get an error like :

[code]
Error: document.getElementById("form1:statictext8") has no properties
Source File: http://localhost:28081/pluto/portal/Publisher/..
Line: 299
[/code]


can some one please tell me  what is my mistake ?

  
  You can't say elem.style = "..." in _javascript_. Style isn't a
string-valued property, it's a 'special' accessor for an object with CSS
style properties. You need something more like

 with(document.getElementById("form1:statictext8").style) {
 left = '25px';
 top = '383px';
 ...
 }


L.


  


--
Gerald Mllan
Schelleingasse 2/11
1040 Vienna, Austria
0043 699 11772506
[EMAIL PROTECTED]


  
  

--

http://www.irian.at

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

Professional Support for Apache MyFaces

  

Hi
Thank you all for helping me solve this problem.
I have 3 mistake :
1-I should declare a variable and put the Textfield into it , then i
can access that object attribute
2-_javascript_ is case sensitive for this case and other case too , so i
should use form1:staticText8
3-I should not use style and i should use , style.cssText

Thank you all.




[OT]Problem with accessing form Element using javaScript

2006-03-30 Thread Legolas Woodland

Hi
thank you for reading my post.
I have this problem in my web application :
generated html which i view in my browser has this :

[code]

span id=form1:staticText8 style=border-width: 1px; border-style: 
solid; border-color: rgb(0, 0, 0) rgb(0, 0, 0) rgb(0, 0, 0) rgb(0, 0, 
0); height: 15px; left: 23px; top: 392px; position: absolute; width: 
145pxMy test Value/span

[/code]

In my java Script function i have:

[code]
function setNewColors(obj)
{
if(obj=='Yellow'){
document.getElementById(form1:statictext8).style = left: 25px; top: 
383px; position: absolute; width: 143px; border-width: 1px; 
border-style: solid; border-color:#fdffca; background-color:#fdffca; 
color: #00;;

}
}
[/code]

i trigger the color change function in :
[code]
select style=left: 264px; top: 240px; position: absolute; width: 
288px class=MnuStd id=form1:dropDown1 name=form1:dropDown1 
size=1 
onchange=setNewColors(this.value);dropDown_changed('form1:dropDown1');  
return false;

[/code]

When i select yellow from the drop down box , it call color change but 
in javaScript console of FireFox i get an error like :


[code]
Error: document.getElementById(form1:statictext8) has no properties
Source File: http://localhost:28081/pluto/portal/Publisher/..
Line: 299
[/code]


can some one please tell me  what is my mistake ?

Thanks


Re: [OT]Problem with accessing form Element using javaScript

2006-03-30 Thread Legolas Woodland




Hi
thank you for reply.
forceId is just for myfaces , and for now i am not using myfaces.
I change that to what you said and i still get the same error from
_javascript_ Console


Error: staticText8 has no properties
Source File: http://localhost:28081/pluto/portal/Publisher/...
Line: 306

Thank you for the help

Gerald Mllan wrote:

  Hi,

stupid thing, but try it out with:

var testValue = document.getElementById("form1:statictext8");
testvalue.style = "...";

I am more or less sure that this is the problem. In js you can not
concat method calls in every case.

Apart from that, getting the dom element through the generated id is
not best practice.
Use forceId="true" in the jsp tag to be sure that you can get the id
on client in a predictable manner.

cheers,

Gerald

On 3/31/06, Legolas Woodland [EMAIL PROTECTED] wrote:
  
  
Hi
thank you for reading my post.
I have this problem in my web application :
generated html which i view in my browser has this :

[code]

span id="form1:staticText8" style="border-width: 1px; border-style:
solid; border-color: rgb(0, 0, 0) rgb(0, 0, 0) rgb(0, 0, 0) rgb(0, 0,
0); height: 15px; left: 23px; top: 392px; position: absolute; width:
145px"My test Value/span
[/code]

In my _javascript_ function i have:

[code]
function setNewColors(obj)
{
if(obj=='Yellow'){
document.getElementById("form1:statictext8").style =" left: 25px; top:
383px; position: absolute; width: 143px; border-width: 1px;
border-style: solid; border-color:#fdffca; background-color:#fdffca;
color: #00;";
}
}
[/code]

i trigger the color change function in :
[code]
select style="left: 264px; top: 240px; position: absolute; width:
288px" class="MnuStd" id="form1:dropDown1" name="form1:dropDown1"
size="1"

[/code]

When i select yellow from the drop down box , it call color change but
in _javascript_ console of FireFox i get an error like :

[code]
Error: document.getElementById("form1:statictext8") has no properties
Source File: http://localhost:28081/pluto/portal/Publisher/..
Line: 299
[/code]


can some one please tell me  what is my mistake ?

Thanks


  
  

--
Gerald Mllan
Schelleingasse 2/11
1040 Vienna, Austria
0043 699 11772506
[EMAIL PROTECTED]

  






[ADF faces] Command button does not accept style attribute?

2006-03-29 Thread Legolas Woodland

Hi
Thank you for reading my post
I am trying to use ADF faces , i have a command button like :
af:commandLink immediate=true text=Component Guide  style=left: 
264px; top: 150px; position: absolute   action=guide/



ad it rerun an error that say :
Attribute style invalid for tag commandLink according to TLD

How i can use style for my ADF faces ?


[ADF Faces]Could not find renderer for CoreCommandLink

2006-03-29 Thread Legolas Woodland

Hi
Thank you for reading my post.
I get the following in application server log file and command link 
button does not show in the page

here is my jsf code

af:commandLink immediate=true text=Component Guide  
inlineStyle=left: 264px; top: 150px; position: absolute   
action=guide/


and here is a part of web.xml that has some ADF faces declaration :

filter
   filter-nameadfFaces/filter-name
   filter-classoracle.adf.view.faces.webapp.AdfFacesFilter/filter-class
 /filter


   filter-mapping
   filter-nameadfFaces/filter-name
   servlet-nameFaces Servlet/servlet-name
 /filter-mapping
 servlet
   servlet-nameFaces Servlet/servlet-name
   servlet-classjavax.faces.webapp.FacesServlet/servlet-class
   load-on-startup1/load-on-startup
 /servlet

and here is a part of faces-config.xml which contain some stuff related 
to adf faces


default-render-kit-id
 oracle.adf.core
   /default-render-kit-id

I add two jar files to my web-inf/lib folder
those two jar files are :
adf-faces-api-ea20-SNAPSHOT
adf-faces-impl-ea20-SNAPSHOT
and also some other jar files like
jsf-impl-1.1_01



Thanks


is there a component in Myfaces or in the web which can show resource string of a given key

2006-03-28 Thread Legolas Woodland

Hi
Thank you for reading my post.
I am looking for a component that can show , string resource of a given Key.
I mean a component that i sets some of its property and then i could set 
the string resource key in my backing bean and it shows value for that 
key in html page.


Thanks


How i can show current timeStamp in jsf

2006-03-26 Thread Legolas Woodland

Hi
Thank you for reading my post
How i can show current timestamp in jsf ?

thanks


Re: How i can show current timeStamp in jsf

2006-03-26 Thread Legolas Woodland




Andreas Zeller - zit-systems wrote:

  Hey Legolas,

Timestamp? java.util.Calendar.getInstance().getTime() will give you the
current time and date... Does that help you?

Andreas

Legolas Woodland wrote:

  
  
Hi
Thank you for reading my post
How i can show current timestamp in jsf ?

thanks



  
  

  

Hi
Thank you for the reply.
I mean how i can print it in a jsf page.
imagine that i have a jsf page and i want to show current timestamp ,
what should i do ,can you give me a sample ?





I am trying to run a sample application of myfaces in tomcat 5.5.9 but it return NullPointerException

2006-03-24 Thread Legolas Woodland

Hi
Thank you for reading my post.
I am trying to test a sample myfaces application in tomcat 5.5.9 , but 
it return the following exception:

java.lang.NullPointerException
   at 
javax.faces.webapp.UIComponentTag.setupResponseWriter(UIComponentTag.java:615)
   at 
javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:217)
   at 
org.apache.myfaces.taglib.core.ViewTag.doStartTag(ViewTag.java:71)

   at org.apache.jsp.index_jsp._jspx_meth_f_view_0(index_jsp.java:99)
   at org.apache.jsp.index_jsp._jspService(index_jsp.java:74)
   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.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
   at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
   at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
   at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
   at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
   at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
   at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
   at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
   at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
   at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)

   at java.lang.Thread.run(Thread.java:595)


here is my web.xml file

?xml version='1.0' encoding='UTF-8'?

!DOCTYPE web-app PUBLIC
 -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;


web-app


   context-param
   param-namecom.sun.faces.validateXml/param-name
   param-valuetrue/param-value
   description
 
   /description

   /context-param

   context-param
   param-namecom.sun.faces.verifyObjects/param-name
   param-valuetrue/param-value
   description

   /description
   /context-param

   !-- Faces Servlet --
   servlet
   servlet-nameFaces Servlet/servlet-name
   servlet-classjavax.faces.webapp.FacesServlet/servlet-class
   load-on-startup1/load-on-startup
   /servlet


   !-- Faces Servlet Mapping --
   servlet-mapping
   servlet-nameFaces Servlet/servlet-name
   url-pattern*.jsf/url-pattern
   /servlet-mapping

/web-app


I have included following jar file into web-inf/lib
myfaces-impl.jar
myfaces-api.jar
sandbox.jar
tomahawk.jar
myfaces-all.jar





Does any one used zk1 for ajax purpose ?

2006-03-20 Thread Legolas Woodland

Hi
Does any one used http://zk1.sourceforge.net/ for ajax purpose ?
how does it compare with other ajax frameworks?


Thanks


newbee question about navigation.

2006-03-20 Thread Legolas Woodland

Thank you for reading my post

I have a button in one of my page which i want the application to 
navigate to another page when user

pressed that button .
i made the button like the folwoing
h:commandButton action=Logout title=Logout  label=Logout  
value=Logout  /h:commandButton



and my navigation rule and case is like :
   navigation-rule
   navigation-case
   from-outcomeLogout/from-outcome

   to-view-id/Logout.jsp/to-view-id

   /navigation-case
   /navigation-rule


but it never navigate to logout page when i press the button
can you tell me what is wrong ?


Thanks


newBee question : what are these additional declaration in web.xml for jsf stuff.

2006-03-20 Thread Legolas Woodland

There are two declaration in web.xml that i can not understand
these are :

servlet
   servlet-nameFaces Servlet/servlet-name
   servlet-classjavax.faces.webapp.FacesServlet/servlet-class
   load-on-startup1/load-on-startup
   /servlet

   !-- Faces Servlet Mapping --

   servlet-mapping
   servlet-nameFaces Servlet/servlet-name
   url-pattern/faces/*/url-pattern
   /servlet-mapping


I just can not understand , in some places they set another url-pattern 
, for example :

   url-pattern*.faces/url-pattern
and thier application works file.

but for me with the first url-mapping , i should navigate to
http://localhost:8080/testApp/faces/index.jsp to works
so my understanding is that :
when i navigate to that url , the pattern matches and filter applies to 
my request.


but when people uses *.faces in url-pattern , how they navigate to jsp 
pages ?
should they change the file extensions to use jsf pages , or there is 
some other triks ?



Thank you


Re: newbee question about navigation.

2006-03-20 Thread Legolas Woodland

Thank you , the solution works fine :-)


Joey Geiger wrote:

commandButton and commandLink need to be surrounded by a form.
h:form/h:form
There are cases where commandLink will work without a form, but I've 
run into issues with that.


Legolas Woodland wrote:

Thank you for reading my post

I have a button in one of my page which i want the application to 
navigate to another page when user

pressed that button .
i made the button like the folwoing
h:commandButton action=Logout title=Logout  label=Logout  
value=Logout  /h:commandButton



and my navigation rule and case is like :
   navigation-rule
   navigation-case
   from-outcomeLogout/from-outcome
   to-view-id/Logout.jsp/to-view-id
   /navigation-case
   /navigation-rule


but it never navigate to logout page when i press the button
can you tell me what is wrong ?


Thanks










Re: newBee question : what are these additional declaration in web.xml for jsf stuff.

2006-03-20 Thread Legolas Woodland




Hi Dean,
I have changed my web.xml  file as follow :


servlet

   servlet-nameFaces Servlet/servlet-name

  
servlet-classjavax.faces.webapp.FacesServlet/servlet-class

   load-on-startup1/load-on-startup

   /servlet


   !-- Faces Servlet Mapping --


   servlet-mapping

   servlet-nameFaces Servlet/servlet-name

   url-pattern*.leg/url-pattern

   /servlet-mapping


I have *No* .leg file in my web root file.
i have files like :
index.jsp
logout.jsp
login.jsp

When i tried to access my index.jsp using the following url :
http://127.0.0.1:8080/test/index.leg
it return 
HTTP Status 404 -

what else i should configure to use .leg extension ?
should i change all of myfiles extension to .leg?


before this i used the formal /faces/* as a url pattern , on that time
i could access my jsp files  using
http://localhost:8080/test/faces/index.jsp


Thanks


Dean Hiller wrote:
yes, I
use *.jsf.  when a url http://localhost:8080/webapp/page.jsf is called,
it calls the jsp in webroot of your war file.  I also personally put
this in my web.xml.
  
  
context-param
  
  param-namejavax.faces.DEFAULT_SUFFIX/param-name
  
  param-value.jspx/param-value
  
/context-param
  
  
This allows me to name all my JSF jsps .jspx and I can name all my
normal jsps(that are not for JSF) x.jsp.  I tried to figure out how
I could use jsf in the url and in the file name in the war file, but it
seems that cannot be done right now(or I could not figure it out).
  
later,
  
dean
  
  
  
  
Legolas Woodland wrote:
  
  
  There are two declaration in web.xml that i
can not understand

these are :


servlet

   servlet-nameFaces Servlet/servlet-name

  
servlet-classjavax.faces.webapp.FacesServlet/servlet-class

   load-on-startup1/load-on-startup

   /servlet


   !-- Faces Servlet Mapping --


   servlet-mapping

   servlet-nameFaces Servlet/servlet-name

   url-pattern/faces/*/url-pattern

   /servlet-mapping



I just can not understand , in some places they set another url-pattern
, for example :

   url-pattern*.faces/url-pattern

and thier application works file.


but for me with the first url-mapping , i should navigate to

http://localhost:8080/testApp/faces/index.jsp to works

so my understanding is that :

when i navigate to that url , the pattern matches and filter applies to
my request.


but when people uses *.faces in url-pattern , how they navigate to jsp
pages ?

should they change the file extensions to use jsf pages , or there is
some other triks ?



Thank you

  
  
  
  






Re: Yet another calendar (also works in Java Studio Creator)

2006-03-17 Thread Legolas Woodland




Edwin Goei wrote:

  
  On 3/17/06, Legolas Woodland [EMAIL PROTECTED] wrote:
  
Thank you for reading my post.
Does this component use Creator theming system ?
I mean what will happen if i disable the Them system of creator by
removing the them link , what will happen to your component?
Creator standard component will not function correctly if we remove the
theme link.


  
  
This is really a Creator question but the themes in Creator currently
only apply to the components in the xmlns:ui="http://www.sun.com/web/ui"
namespace. So this sample calendar component is separate from that and
has a hardwired skin.
  
  
-Edwin

Thank you for the post.
where i can get this calendar , could you please provide a link ?
is there any Tabset like component that does not depend on Creator
theme ?
for example in myfaces , is there any Tabset component ?

Thank you




Re: Yet another calendar (also works in Java Studio Creator)

2006-03-16 Thread Legolas Woodland




Matthias Wessendorf wrote:

  Edwin has already an Apache account ;-)

http://www.edwingo.org/

-Matthias

On 3/11/06, Dennis Byrne [EMAIL PROTECTED] wrote:
  
  
Great news Edwin !

You'll want to read this http://www.apache.org/licenses/ , fill out http://www.apache.org/licenses/icla.txt , and your employer will need to complete http://www.apache.org/licenses/cla-corporate.txt .  This can take many weeks to finish .

Make sure there are no third party dependencies that conflict w/ the apache license.

In the meantime you'll also want to refactor the component for the myFaces sandbox after you get a hold of the source http://myfaces.apache.org/source-repository.html and submit a patch in the issue tracker http://myfaces.apache.org/issue-tracking.html .  When the dev team feels the component has matured ( people use it, people ask for features/fixes, features/fixes are being taken care of ), it will be moved to tomahawk.

I'd suggest getting some real good documentation in order to generate interest in the component.  Start w/ the wiki.

Also, use dev@myfaces.apache.org for contribution related stuff.  Good luck and looking forward :)

Dennis Byrne



  -Original Message-
From: Edwin Goei [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 10, 2006 07:22 PM
To: 'MyFaces Discussion'
Subject: Yet another calendar (also works in Java Studio Creator)

I recently developed a prototype JSF popup calendar component to
accompany some documentation for third-party component developers for
the product I work on.  Surveying other calendars on the web and fixing
problems in the currently shipping calendar, I think I have chosen the
functionality that 80% of users would want.  One thing that is different
is that this calendar has design-time support for Java Studio Creator.
I'd like it to be the basis for a real product quality component.  If
there's interest, I might be able to convice my employer to donate the
code to apache.  For screenshots and links to docs, you can look at
http://blogs.sun.com/roller/page/edwingo?entry=component_authoring_for_creator.

BTW, I originally tried to adapt the myfaces inputDate component, but
found it would require runtime changes to the code.  It's still possible
to do this but when I started to write the sample, I decided to start
  

from a clean slate.


  -Edwin

  




  
  

--
Matthias Wessendorf
Zlpicher Wall 12, 239
50674 Kln
http://www.wessendorf.net
mwessendorf-at-gmail-dot-com

  

Hi
Thank you for reading my post.
Does this component use Creator theming system ?
I mean what will happen if i disable the Them system of creator by
removing the them link , what will happen to your component?
Creator standard component will not function correctly if we remove the
theme link.





Re: How Does JDeveloper Compare with Java Studio Creator

2006-03-04 Thread Legolas Woodland




Martin Marinschek wrote:

  Thing = embedded OC4j in JDeveloper.

I didn't try JSC so far - would the performance be better there? Any
experiences?

regards,

Martin

  

No performance is not better there.
you will hang for ever in case that you open a project with 200 jsp
files.
best IDE that i saw for large projects is RAD (Rational application
developer) it handle a ~150 page Struts application easily.
I think using tomcat is far better in development time , it starts and
stops faster than any other Apps.
but you can use Tomcat if you have no EJB  stuff...


  On 3/4/06, Martin Marinschek [EMAIL PROTECTED] wrote:
  
  
Can you guys tell how well your IDEs would perform with large apps?

I was trying to get an app with 200 jspx files (admittedly, rather
large) up and running in JDeveloper, and the thing didn't start up
until after 10min.

Is work being done on making this situation better?

Maybe I'm doing something wrong here, too.

regards,

Martin

On 3/4/06, Adam Winer [EMAIL PROTECTED] wrote:


  On 3/3/06, Yee CN [EMAIL PROTECTED] wrote:
  
  


Is there any supports for Facelets in JDeveloper or JSC? I am using
MyEclipse – and I am seriously looking for an alternative.

  
  Unfortunately not.  Facelets has come on strong basically at
exactly the wrong point in the development cycle for JDeveloper
(and JSC too, I'd imagine).  I'm certainly pushing Facelets
to anyone in earshot. :)

-- Adam

  


--

http://www.irian.at

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

Professional Support for Apache MyFaces


  
  

--

http://www.irian.at

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

Professional Support for Apache MyFaces

  






Re: How Does JDeveloper Compare with Java Studio Creator

2006-03-02 Thread Legolas Woodland




Mike Duffy wrote:

  Thx Werner.

Do you know if Java Studio Creator supports MyFaces and Tomahawk?

Mike

  

It does not support MyFaces and Tomahawk in its designer.
so you can not import them into JSC and use them in its page designer ,
until you make some required files that represent each myfaces
component in design time.
it name is compLib , maybe Carig can explain more




  
--- Werner Punz [EMAIL PROTECTED] wrote:

  
  
Well studio creator2 only covers the client side aspects
currently, jdeveloper is a full blown enterprise ide, with ejb3
support case tools etc...

studio creator follows the absolut layout via css approach.
Both ides use heavily their own component sets (well parts of ADF have
been opensourced)

The Studio Creator relies on a generic data model interface and JDBC
currently for data access while jdeveloper meshes to a big degree with
the underlying adf foundation.




Mike Duffy schrieb:


  Oracle came to the Austin JUG on Tuesday night and gave a very cool presentation on JDeveloper
  

for


  JSF development.

Does anyone have any thoughts on how JDeveloper compares with Sun's Java Studio Creator?

Does anyone have any links for objective third party comparisons?

Are there any other choices that should be seriously considered.

Thx.

Mike

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

  



  
  

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

  






Some simple questions about JSF frameworks ....?

2006-02-28 Thread Legolas Woodland

Hi
Thank you for reading my post.
I want to know what additional features SEAM from jboss ,Clay , Shale 
from Apache and Facelets

bring to jsf.
I will be happy if some one give me a simple answer.



Thank you


[other] Does any one has experience with Daylirazor Hosting?

2006-02-15 Thread Legolas Woodland

Hi
Thanks for reading my post
Does any of member here used www.dailyRazor.com hosts for their java 
based web applications ?
I want to purchase an ImpactRazor from them , its price is 10.95/month 
if i buy 1 year hosting plan.

i think its price is good but i have no experience with them.
any comment?



How i can cache some part of a jsf file , which change in backing bean?

2006-02-10 Thread Legolas Woodland

Hi
Thank you for reading my post.
How i can cache some parts of a jsf file ?
Indeed , i want to cache an image which i assign its image url in 
backing bean. upon visitor request
creation of this image is very heavey , so i want to cache it for some 
hours.


thanks


Re: [other]Borland want to sell its IDE products.....

2006-02-09 Thread Legolas Woodland
I think , who will buy these stuff , All company that has money to by 
these product line has their own stuff (IBM ,BEA ,SUN ,MS,ORACLE) , is 
there any other company that has enough cash to buy those products ?
how much those products costs ? for example how much should buyer pay to 
get Jbuilder ?

can any one suggest , or read something some where ?

Martin van den Bemt wrote:



Werner Punz wrote:

Sean Schofield schrieb:

I personally love JBuilder but it is very pricey. 


I think you brought up the main point, now that the enterprise stuff
finally again is moving into sane domains pricewise (Thanks to Sun and
MyEclipse) Borland simply cannot afford to charge this money for their
stuff anymore.
Borland started as a tools vendor with moderate prices at a time where
tools simply cost a fortune. So lots of people who wanted to learn
programming started to use their tools, lots of professionals as well
who could not afford the heavy priced alternatives.

Once Kahn was kicked out they lost this strategy and pushed a high price
strategy with Enterprise plastered all over it (probably a stupid idea
of some MBAs taking over internally)



I think the problem started when Niels Jensen left and started JPI 
(one of the founders of Borland, don't know when the others left, Kahn 
is not the founder btw). Normally when the soul leaves the company, 
the company changes.


Mvgr,
Martin





Where i can download ADF faces which are donated to Myfaces ?

2006-02-08 Thread Legolas Woodland




Hi
Thank you for reading my post
where i can find a download able package of Cheeroke? (Oracle ADF
faces which are donated to Apache)
Thank you




[other]Borland want to sell its IDE products.....

2006-02-08 Thread Legolas Woodland

Hi
just look at
http://blogs.borland.com/davidi/archive/2006/02/08/23013.aspx

it say that borland is going to sell its IDEs , what will happen next ?
who will buy jdeveloper ?



Is there any color picker components which works with JSC components?

2006-02-06 Thread Legolas Woodland

Hi thank you for reading my post.
I need  a color picker  component to use in my jsf portlet application 
which I am developing with JSC

is there any color picker component  available in OSS or Free license ?

thanks



Files upload inside a jsf portlet

2006-02-05 Thread Legolas Woodland

Hi
thank you for reading my post.
I need file upload facility inside a jsf portlet , now i do not know how 
to implement this feature because

i use JSC and its file upload does not works inside a portlet.
can some one tell e whether Myfaces file upload works inside portlet or 
not ?


Thank you.


Re: {ANN] Oracle JDeveloper 10.1.3 Production Released

2006-02-02 Thread Legolas Woodland




Jonas Jacobi wrote:

  
In case you wonder why I have been quite ;)
  
Today we released Oracle JDeveloper 10.1.3 Studio production release -
you can download it from here with plenty of tutorials and other
goodies. There is also improved doc on ADF Faces.
  

Re post
Hi , it is very good news 
I will get the IDE asap , but when i get the EA1 version i find that
its editor is not as smart as Eclipse ones.
is there improvement for Editor ?
*more important item for me is JSF portlets , does Jdeveloper support
developing jsf portlet that are deployable inside JSR-168 portals like
Jetspeed 2 ?*
I will be happy to find answer to second question , right now i use
Creator studio to develop jsf portlet , i like to use ADF faces too .so
if JDEV can develop jsr portlet then i can go with Jdeveloper for next
portlet in this project.

Thank you
http://otn.oracle.com/jdev
  
Thanks,
Jonas
  -- 
  Author: Pro JSF and
Ajax: Building Rich Internet Components
  Blog: 
http://www.orablogs.com/jjacobi
  
  
  







What is different between a jsf portlet and plain jsf application

2006-02-02 Thread Legolas Woodland

Hi
Thank you for reading my post.
I want to know what is different betweena jsf portlet and a plain jsf 
web application.
imagine that i made a web application using myfaces components , now i 
wannt to deploy that web application
into some portlet container like JetSpeed . if i do not need any 
information from the portal (user name , portal session ...)

then how i much works it needs ?

another  question is :
what is internal technical differences between a jsf portlet and a jsf 
web application ?


sorry for poor english
Thank you


Re: {ANN] Oracle JDeveloper 10.1.3 Production Released

2006-01-31 Thread Legolas Woodland




Jonas Jacobi wrote:

  
In case you wonder why I have been quite ;)
  
Today we released Oracle JDeveloper 10.1.3 Studio production release -
you can download it from here with plenty of tutorials and other
goodies. There is also improved doc on ADF Faces.
  

Hi , it is very good news 
I will get the IDE asap , but when i get the EA1 version i find that
its editor is not as smart as Eclipse ones.
is there improvement for Editor ?
*more important item for me is JSF portlets , does Jdeveloper support
developing jsf portlet that are deployable inside JSR-168 portals like
Jetspeed 2 ?*
I will be happy to find answer to second question , right now i use
Creator studio to develop jsf portlet , i like to use ADF faces too .so
if JDEV can develop jsr portlet then i can go with Jdeveloper for next
portlet in this project.

Thank you
http://otn.oracle.com/jdev
  
Thanks,
Jonas
  -- 
  Author: Pro JSF and
Ajax: Building Rich Internet Components
  Blog: 
http://www.orablogs.com/jjacobi
  
  
  






How to retrive request parameter in jsf pages

2006-01-31 Thread Legolas Woodland

Hi
thank you for reading my post.
how i can retrieve request parameter in jsf ?
for example if i have :
http://127.0.0.1/myproj/faces/viewMessage.jsp?messageID=15
how i can retrieve that message ID in backing bean of jsf page ?




a problem with servlet url mapping , a complex problem.

2006-01-22 Thread Legolas Woodland

a problem with servlet url mapping ,  a complex problem.

Hi
Thank you for reading my post.
My problem is about using a Chart library which works well in jsf 
application

but it does not works in JSF portlets.
I think i find the problem but i do not know the solution.
to use this charting library we should add a servlet to web.xml

something like :
[code]

 servlet
   servlet-nameJenia internal servlet/servlet-name
   servlet-classorg.jenia.faces.util.Servlet/servlet-class
   load-on-startup2/load-on-startup
/servlet
servlet-mapping
   servlet-nameJenia internal servlet/servlet-name
   url-pattern/jenia4faces/*/url-pattern
/servlet-mapping

[/code]


so , when we try to load a chart , it will make the chart image source 
something like :


http://localhost:28080/Adv/jenia4faces/chart/OAReport.jspBarChart3d_id0.png


in the above sample , adv is the name of web application which is 
deployed in a servlet container.

and filter applied to make the chart render-able.


[b]to use the chart library in jsf portlet , i add the servlet 
description as i did for web application , so i add[/b]


[code]

 servlet
   servlet-nameJenia internal servlet/servlet-name
   servlet-classorg.jenia.faces.util.Servlet/servlet-class
   load-on-startup2/load-on-startup
/servlet
servlet-mapping
   servlet-nameJenia internal servlet/servlet-name
   url-pattern/jenia4faces/*/url-pattern
/servlet-mapping

[/code]

to my portlet web.xml file.

when we have portlet , the url to access that portlet (which indeed is a 
web application) changes
for example url for a sample portlet with same web application name  
will be like

http://localhost:28080/pluto/portal/Adv/

as you can see there are some prefix to web application name in the url 
, but when i use chart component to show

same chart , it still look for the chart in url like :

http://localhost:28080/Adv/jenia4faces/chart/OAReport.jspBarChart3d_id0.png


As you may already sugest , the image will not render because browser is 
looking in  wrong place.
now i think if i find some way to map that servlet to correct url 
pattern it will works.


my question is :
1-what will be new servlet url pattern ?
2-is my assumption correct ?


Thank you very much for reading such a long post


how i can change this tags usage to jsf standard mode.

2006-01-18 Thread Legolas Woodland

Hi
Thank you for reqding my post.
how i can translate this tags to equal jsf tags (I mean how i should 
change useBean to jsf equal ones.)


jsp:useBean id=pageViews 
class=de.laures.cewolf.example.PageViewCountData/

cewolf:chart
   id=line
   title=Page View Statistics
   type=line
   xaxislabel=Page
   yaxislabel=Views
   cewolf:data
   cewolf:producer id=pageViews/
   /cewolf:data
/cewolf:chart
p
cewolf:img chartid=line renderer=cewolf width=400 height=300/

for example how i can replace that jsp:useBean with something jsf-ish .

Thank you


problem when adding a jsp-config to web.xml to make jspf recognized as XML formatted files.

2006-01-14 Thread Legolas Woodland


Hi
Thank you for reading mu post.
I tried to add / change following items in web.xml for my jsf application
to make suret hat application server treat jspf files as utf-8 (XML format).
what i my web.xml changed section looks like after i add changes is:

[code]

?xml version=1.0 encoding=UTF-8?
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 
2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd;

!--
Copyright 2002, 2003 Sun Microsystems, Inc. All Rights Reserved.
--
web-app  xmlns=http://java.sun.com/xml/ns/j2ee; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4




jsp-config
   jsp-property-group
 url-pattern*.jspf/url-pattern
 page-encodingUTF-8/page-encoding
 is-xmltrue/is-xml
   /jsp-property-group
 /jsp-config



[/code]


but when i try to deploy it to the server , server says that :
Deploying application in domain  failed; Error loading deployment 
descriptors for Advertiser Line 6 Column 220 -- Attribute xmlns must 
be declared for element type web-app.


can some one please tell me what is my mistake ?
Im using sun application server 8.1 , which support latest jsp standard

what is wrong here ?
is there other ways to say the server to treat jspf files as utf-8 / XML 
formatted files ?



Thank you


how i can open a browser windows using a button in jsf ?

2006-01-14 Thread Legolas Woodland

Hi
Thank you for reading my post
how i can open a browser windows using a button in jsf ?
for example if i want to open a window which will show   
http://www.mywebsite.com?name=TestNamefamily=TestFamily

and before opening the window i need to set those two variables.

can some one help me with a solution ?


thank you



How i can open a link in a browser window using a button ?

2006-01-13 Thread Legolas Woodland


Hi
Thank you for reading my post.
how i can open a pop-up browser ?
I want to open a pop-up browser with a dynamic link which i make by 
using my

parameters.

is it possible to put a button on page and make some code to open a 
pop-up browser ?


Can some one help me to do this ?

I should tell that i can not use Myfaces component and i need a plain 
jsf solution.


how to load string resources from bundle files in backing beans ?

2006-01-12 Thread Legolas Woodland


Hi
Thank you for reading my message.
I have a problem , I need to load some of my resource string from String 
bundle
By string bundle i mean the .properties file that we use to make 
application i18n-ed .
Now i need to load some of my key from bundle file in one of my jsf page 
backing bean.


for example :
in jsf i write :
 text=#{bundle.user_name} /

now i want to access those keys from my java source files.
i need to access the bundle in right locale when i try to use it.

for example if locale is French i should load the key from 
bundle_fr.properties .

I defined this bundle file both in my jsf page using
f:loadBundle basename=mypackage.Bundle var=bundle /
and i use it in all jsf tags by that bundle variable.

now i need same access in java backing beans.

can some one  help me ?

Thank you



Re: how to load string resources from bundle files in backing beans ?

2006-01-12 Thread Legolas Woodland




Cagatay Civici wrote:
Hi Legolas,
  
You should try this;
  
String bundleName =
getFacesContext().getApplication().getMessageBundle();
Locale locale = facesContext.getApplication().getDefaultLocale();
ResourceBundle bundle = ResourceBundle.getBundle
(bundleName, locale);
String msg = bundle.getString("your key here");
  
regards,
  
Cagatay Civici



Thank you very much.
it works  , what will happen if user change the locale by using the
button that i provide ?
will it return current locale ?
Thank you




  On 1/12/06, Legolas Woodland  [EMAIL PROTECTED]
wrote:
  
Hi
Thank you for reading my message. 
I have a problem , I need to load some of my resource string from String
bundle
By string bundle i mean the .properties file that we use to make
application i18n-ed .
Now i need to load some of my key from bundle file in one of my jsf
page 
backing bean.

for example :
in jsf i write :
 text="#{bundle.user_name}" /

now i want to access those keys from my java source files.
i need to access the bundle in right locale when i try to use it. 

for example if locale is French i should load the key from
bundle_fr.properties .
I defined this bundle file both in my jsf page using
f:loadBundle basename="mypackage.Bundle" var="bundle" / 
and i use it in all jsf tags by that bundle variable.

now i need same access in java backing beans.

can some one  help me ?

Thank you

  
  







How to cache a page for some days (in server side) , and allow user to knwo the page OLD

2006-01-10 Thread Legolas Woodland
HiThank you for reading my post.
I have a very heavy to create web page wich contain some chartI want users to be able to see the live report once per 2 days.
This page contain some sophisticate query , so refreshing the page data could be very heavy job.
so i want to allow users to see a cached version of the page after they refresh it until 3 days.during this 3 days i want to have a lable or something that shows user , This page is : 2 Days old .
is it possible to do such thing ?I should mention that 
1-im using jsf2-im using Creator Studio3-it is a portlet page
can this job be done with OScache , ... ?or it need some special knowledge ?
Thank you


Is there any difference between binding using a Managed bean (defined in faces-config.xml) and an object,defined in backing bean class ?

2006-01-09 Thread Legolas Woodland

Hi
thank you for reading my post.
Is there any difference between binding using a Managed bean (defined in 
faces-config.xml) and an object

defined in backing bean class ?
in a tutorial i saw that author used a Managed beans to accomplish some 
jobs.

he referenced to a Managed beans by using #{Bean1.ts}
i tried and made ts in my backing bean and referenced ts like : #{page12.ts}

what is difference between this two approach.


A question about managed beans , how MB methods treated ?

2006-01-08 Thread Legolas Woodland


A question about managed beans , how MB methods treated ?
Hi thank you for reading my post.
I have a managed bean like the following defined in faces-config.xml



   managed-bean
   descriptionOver all report Bean/description
   managed-bean-nameOAllReport/managed-bean-name
   managed-bean-classpublisher.OAllReport/managed-bean-class
   managed-bean-scopesession/managed-bean-scope
   /managed-bean


publisher.OAllReport class has a method which in that method do some sql 
operations.
I learned this from a tutorial and i tried to use it in my application , 
but before my decision goes final

i want to know that

As i said i have some methods that do sql operation , i did nothing in 
constructor.
-does sql operations run without call to methods ? i mean does JSF 
engine call methods of a managed bean ?

-does it brings some loads to my system ?
-when System initiate those classes ?


Thank you




How this problem with unicode characters can happen . it convert chatracters to #6546 .... after an action

2006-01-07 Thread Legolas Woodland

Hi
Thank you for reading my post.
I have a jsf application , i sets all page encodings to utf-8 but now 
after i enter some unicode data in a form and press submit it convert 
them all to

#5454..

i attach the screen shots.
I should say that I am using Creator studio 2 ea 2.


Thank you



attachment: step2.JPG
attachment: step1.JPG


Re: JSF Chart Creator and JSF Client Side Validators

2006-01-05 Thread Legolas Woodland




Cagatay Civici wrote:
Hi,
  
JSF Chart Creator control requires JFreeChart to compile but as you
guys said if it is not possible to include it in myFaces due to
licensing issues the best solution for now might be to provide a link
to it from MyFaces so users who need charting can find easily. 
  
JSF Client Validators has no external dependencies, I've tested the
component only with the internet explorer and several improvements
might be needed to make it run without problems in other browsers. 
  
And yes I have time/interest to refactor and make the components
compatible with the myFaces conventions. I am currently working on
getting familiar with the internal structure of myFaces library.
  
  
Per Legolas's question.
Chart Creator uses a servlet which prevents it from being used inside
portlets but I think can fix this issue soon.

Thank you very much.
Can i be optimistic that i will have A chart component in this week ?
Im not Expert programmer , so i can not make my chart myself .

Regards,
Cagatay Civici
  www.jroller.com/page/cagataycivici






Re: JSF Chart Creator and JSF Client Side Validators

2006-01-05 Thread Legolas Woodland




Martin Marinschek wrote:

  I'm very sorry, but this will surely not be finished in a week. If you
need something in a week, you'll better use the component in its
current state.

regards,

Martin
  


What i need to learn to remove the component dependency over a servlet ?

Thank you.


  
On 1/5/06, Legolas Woodland [EMAIL PROTECTED] wrote:
  
  
 Cagatay Civici wrote:
Hi,

 JSF Chart Creator control requires JFreeChart to compile but as you guys
said if it is not possible to include it in myFaces due to licensing issues
the best solution for now might be to provide a link to it from MyFaces so
users who need charting can find easily.

 JSF Client Validators has no external dependencies, I've tested the
component only with the internet explorer and several improvements might be
needed to make it run without problems in other browsers.

 And yes I have time/interest to refactor and make the components compatible
with the myFaces conventions. I am currently working on getting familiar
with the internal structure of myFaces library.

 Per Legolas's question.
 Chart Creator uses a servlet which prevents it from being used inside
portlets but I think can fix this issue soon.
 Thank you very much.
 Can i be optimistic that i will have A chart component in this week ?
 Im not Expert programmer , so i can not make my chart myself .



 Regards,
 Cagatay Civici
 www.jroller.com/page/cagataycivici



  
  

--

http://www.irian.at

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

Professional Support for Apache MyFaces

  






Re: JSF Chart Creator and JSF Client Side Validators

2006-01-04 Thread Legolas Woodland




Martin Marinschek wrote:

  Sharing means you want to tell us about them or you want to donate them ;) ?

regards,

Martin

On 1/3/06, Cagatay Civici [EMAIL PROTECTED] wrote:
  
  
Hi,

I have created a series of free components for JSF. All I want is to share
them with you.

JSF Chart Creator
 This component is used for creating charts in JSF applications, there are
currently "27" types of charts supported. Component's feature include fully
customizable charts, 3d charts, anti-aliasing and etc.

JSF Client Side Validation Components
JSF has no built in support for client side validation, these component
series include;
- Required Field Validator
- Compare Validator
- Range Validator
- Regular _expression_ Validator
- Validator Summary

This JSF client validators also has support for field highlighting,
customizable error messages and etc.

These two component series may help you in your development, they are
completely free and open source. These components are currently referenced
by jsftutorials.com, jsfcentral.com, jfree.org, javatoolbox.com.

You can have a detailed look and have free download at;

http://www.jroller.com/page/cagataycivici?entry=jsf_chart_creator

http://www.jroller.com/page/cagataycivici?entry=jsf_client_side_validators

Regards,

Cagatay Civici





  
  

--

http://www.irian.at

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

Professional Support for Apache MyFaces

  

Hi
Thank you for providing these components as im going to use them in my
projet which i build using Creator studio.
i have some questions :
1-in your manual in step 2 you said that we should declare servlet
mapping , can you please tell me why we need servlet mapping?
servlet
 servlet-nameChartWriter/servlet-name
 servlet-classchartcreator.ChartWriter/servlet-class
 /servlet
 servlet-mapping
 servlet-nameChartWriter/servlet-name
 url-pattern/servlet/ChartWriter/url-pattern
 /servlet-mapping
Will this definition restrict me in using chart Creator in a jsf
portlet ?









Re: JSF Chart Creator and JSF Client Side Validators

2006-01-04 Thread Legolas Woodland




Sorry if i post it twice , i think last time no one noticed at the end
of email which i put m reply.
Hi
Thank you for providing these components as Im going to use them in my
project which i build using Creator studio.
i have some questions :
1-in your manual in step 2 you said that we should declare servlet
mapping , can you please tell me why we need servlet mapping?
servlet
 servlet-nameChartWriter/servlet-name
 servlet-classchartcreator.ChartWriter/servlet-class
 /servlet
 servlet-mapping
 servlet-nameChartWriter/servlet-name
 url-pattern/servlet/ChartWriter/url-pattern
 /servlet-mapping
Will this definition restrict me in using chart Creator in a jsf
portlet ?




Martin Marinschek wrote:

  Sharing means you want to tell us about them or you want to donate them ;) ?

regards,

Martin

On 1/3/06, Cagatay Civici [EMAIL PROTECTED] wrote:
  
  
Hi,

I have created a series of free components for JSF. All I want is to share
them with you.

JSF Chart Creator
 This component is used for creating charts in JSF applications, there are
currently "27" types of charts supported. Component's feature include fully
customizable charts, 3d charts, anti-aliasing and etc.

JSF Client Side Validation Components
JSF has no built in support for client side validation, these component
series include;
- Required Field Validator
- Compare Validator
- Range Validator
- Regular _expression_ Validator
- Validator Summary

This JSF client validators also has support for field highlighting,
customizable error messages and etc.

These two component series may help you in your development, they are
completely free and open source. These components are currently referenced
by jsftutorials.com, jsfcentral.com, jfree.org, javatoolbox.com.

You can have a detailed look and have free download at;

http://www.jroller.com/page/cagataycivici?entry=jsf_chart_creator

http://www.jroller.com/page/cagataycivici?entry=jsf_client_side_validators

Regards,

Cagatay Civici





  
  

--

http://www.irian.at

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

Professional Support for Apache MyFaces

  











Re: Is there any add remove List component available ?

2006-01-02 Thread Legolas Woodland




Simon Kitching wrote:

  On Mon, 2006-01-02 at 00:13 +0330, Legolas Woodland wrote:
  
  
Hi
Thank you for reading my posy.
"Add remove list " is a component that has two list box and two buttons 
which facilitate selection of some items from available list to selected 
list.
there is one component like the above but much more completer in SJC , 
but it does not works well in a portlet page (at least for Pluto , which 
is bundled with Creator 2 EA 2) it always render vertically instead of a 
horizontal render.

So my requirement is to find a component which is able to do that job. 
does any one know something similar ?

  
  
There's a "picklist" in the tomahawk sandbox library that sounds similar
to what you want (I haven't used it myself).

Regards,

Simon
  


Hi
Thank you for reply.
I have tOmaHawk 1.1.1 , but it is not included into it.
i have myface 1.1.1 , samples , targz ,src .
i did not find it in any of the above archive.
can you please give me a direct link to downloadable archive of this
component ?


ps :  i can not access any kind of CVS , if it is in cvs , is there any
nightly snapeshot ?


Thank you

  

  






Re: HURRAY!!! SORTING IS WORKING!!!!

2006-01-01 Thread Legolas Woodland




Mike wrote:

  
  I was using MyEclipse.
It's got a "so-so" (IMHO) implementation for JSF ("drag and drop", then
you're on your own in the code window) and no support for portlets.
  
Is the Sun JSF IDE a breeze to work with?
  
  

Sun jsf IDE is very good , it support portlet development too.
but there is a problem . I can not use it effectively with 1024 MB of
ram in a p4 2.5GHZ 
maybe just sun developers with Quad processors workstations could use
it.
many times it reaches 400MB of memory usage with a 25 page portlet.
They are going to provide its release , no one know what is new and
enhanced in the final release in comparison with EA 2 .
Sun want People in The DARK . at least they can provide a bug fix and
enhancement list . some of my question are related to some IDE bug ,
and i do not know whether i should continue with SJC or not.  :-) Although The Creator
Architect is very active in this list , maybe he could clarify some
doubts.
*overall view : It will be a good product when they port it to
netbeans 5 for enhancing the editor , Fix its performance problems*

 Mike
  
Legolas Woodland wrote:
  Mike
wrote: 
It seems that my problem was that my IDE
had,
for some reason, stopped updating the deployment directory even though
the code would work after the changes I made thanks to all the great
suggestions here. 
  
Now, at least, I have a Java problem, not a MyFaces problem. 
  
Now, I'm trying to modify the car sort example to let you sort by a
column that contains strings that are integers. The code in the car
sorting example won't sort strings that contain numbers in order. 
  
Thanks to all for all the terrific help and suggestions! 
  


can i ask which IDE u use for developing jsf applications ? does it
support portlet development too ? 
 Mike 
  





  






Is there any add remove List component available ?

2006-01-01 Thread Legolas Woodland

Hi
Thank you for reading my posy.
Add remove list  is a component that has two list box and two buttons 
which facilitate selection of some items from available list to selected 
list.
there is one component like the above but much more completer in SJC , 
but it does not works well in a portlet page (at least for Pluto , which 
is bundled with Creator 2 EA 2) it always render vertically instead of a 
horizontal render.


So my requirement is to find a component which is able to do that job. 
does any one know something similar ?


Thak you




Can we use several package of jsf components together ?

2005-12-31 Thread Legolas Woodland

Hi
Thank you for reading my post.
can i use more than one package of jsf components in a page ?
I mean , i use Creator studio , now i want to use some of myface 
components (menu) in a page that i create with Studio creator , will it 
cause problems ?
does other components on the page wich from creator works well with 
myfaces components ?
Does any one going to create  design time descriptor for myface 
components ? (something that allows us to use them in page designer of 
Creator Studio)


Thank you.


Re: [Studio Creator] Re: Can we use several package of jsf components together ?

2005-12-31 Thread Legolas Woodland




Craig McClanahan wrote:

  
  On 12/31/05, Dennis Byrne [EMAIL PROTECTED] wrote:
  
On that topic, I'm interested in working on the design time support
for the
MyFaces components, so that they run nicely in Creator, and
contributing it
back to the MyFaces project.We get this request (MyFaces
components with

Creator) from time to time on the Creator forums, and I've seen it
increasingly here as well.Would that be of interest to people
here?

Craig,

I'm sure people here would welcome this.Perhaps you can drop a few
lines about the requirements?Is most of the work on the tool set
side, or is there something MyFaces can do to be more toolable?
  
  
There are several basic categories of requirements for making
Creator-friendly components:
  
* Component architecture - Creator likes components to have concrete
properties,
 not rely on the generic attributes capability of UIComponent. This
allows the tool
  
 to do things like attach property editors and customizers to the
individual properties,
 using standard JavaBean property management techniques.
  
* In particular for Creator, you'll want a "style" property like the
standard JSF components.
  
 If you're using the default absolute positioning mode, this is where
the CSS position
 information is persisted.
  
* Rendering architecture - Creator calls the renderng methods at design
time to generate
 the visualization, so the renderers need to be able to execute
successfully in that case.
 (You can create specialized design time appearance if you want, by
using Beans.isDesignTime()
 to check whether you are at design time or run time). In addition,
the renderers should:
  
  
 - Create well-formed markup (easily done if you use ResponseWriter)
  
 - In renderers that deal with children and facets, such as Tree or
Table,
 use the second argument on startElement() calls to indicate which
  
 component caused this particular output. The tool uses this to
figure
 out which component to select when you click on the design surface.
  
 - Emitting a single outermost element helps the tool identify the
outer
  
 boundaries of a component. That's also where the style attribute
content
 (containing the positioning information) would be rendered.
  
* Tag architecture - the JSP tags associated with your components are
not executed
  
 at design time, so they should not have any logic other than copying
in the relevant
 attributes with type conversions. (Of course, you'll want this to be
true for components
 to work with non-JSP view handlers anyway).
  
  
* Design time behavior - This is provided in two different ways:
  
 - Static information about component classes are provided by
 JavaBeans "BeanInfo" classes associated with each component.
 In turn, these BeanInfo classes can be hand coded, or derived
 from extended faces-config.xml content that conforms to a
 Creator specific DTD. (NOTE - as JSR-276 comes to fruition,
 MyFaces will also want to support the standard metadata formats).
  
  
 - Dynamic behavior (such as "when you drop a table component
 on the design surface, create a bunch of dummy rows and columns")
 is created by providing "DesignInfo" classes for each component,
  
 that conform to a Creator-specific design time API (which has also
 been submitted as a starting point for JSR-273, which MyFaces will
 also want to support when it's done).
  
There will shortly be some components on java.net
that come complete with design time behavior, which we'll be able to
use as examples for what is required. In the mean time, one of my
colleagues (Edwin Goei) has posted some more detailed documentation
about how this stuff works. See the "Writing Custom Components" links
on his Wiki page:
  
  
 http://wiki.java.net/bin/view/Javatools/SunJavaStudioCreator
  
  
  
  

Im waiting to see some more components available to be installed in
Creator Studio , As imho it is a very good tools for people who are not
expert . (I heared that expert developers use code editors (no WYSIWYG)
for all their jobs. would you please post here when those components
become available ?
A suggestion : it will be good if mailing list administrator(S) accept
[Studio Creator] as a tag for post related to Sun java studio creator.


Thank you very much.

  
  Dennis
Byrne


  
  
  
Craig
  






Re: HURRAY!!! SORTING IS WORKING!!!!

2005-12-31 Thread Legolas Woodland

Mike wrote:
It seems that my problem was that my IDE had, for some reason, stopped 
updating the deployment directory even though the code would work 
after the changes I made thanks to all the great suggestions here.


Now, at least, I have a Java problem, not a MyFaces problem.

Now, I'm trying to modify the car sort example to let you sort by a 
column that contains strings that are integers. The code in the car 
sorting example won't sort strings that contain numbers in order.


Thanks to all for all the terrific help and suggestions!



can i ask which IDE u use for developing jsf applications ? does it 
support portlet development too ?

   Mike





is there any tutorial or sample for Myface localization ?

2005-12-29 Thread Legolas Woodland

Hi
Thank you for reading my post.
is there any sample which i can learn localizing JSF application from it ?
my questions are
1-where to put the .properties file , in Struts i could define them in 
struts-config.xml  but i do not have any clue about jsf
2-how to call key from .properties file ? in struts bean:message  , 
but  is jsf i do not know
3-does it needs some specefic declaration to make a jsf application 
localized ?



Thank you


I have about 400 navigation case , does it decrease the performance ?

2005-12-29 Thread Legolas Woodland

Hi
Thank you for reading my post.
I have about 400 navigation case in my jsf application. will it decrease 
my jsf application performance under high load ?
Indeed i have a Tabset (using Studio creator) , it is in a page fragment 
and I add this page fragment  to all my 20 web pages.

and  each tab/subtab should be linked to a jsp page.
so 20page  * 19 link =380 navigation case. does it decrease my performance ?


is there any other solution for this case ?
i defined action= , in my page fragment  for each tab , and in 
navigation description i defined 20 case for each jsp file.


Thank you


Re: I have about 400 navigation case , does it decrease the performance ?

2005-12-29 Thread Legolas Woodland




Dennis Byrne wrote:

  Your users won't notice anything.  

Try using a global nav rule from-view-id/*/from-view-id to reduce the maintenance for those 400 rules.  This allows you to forward the request based upon the outcome (in your case, it means 1/20th the XML).

  

Thank you very much , it is a great help 
:-) 

  
-Original Message-
From: Legolas Woodland [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 29, 2005 04:55 PM
To: 'MyFaces Discussion'
Subject: I have about 400 navigation case , does it decrease the performance ?

Hi
Thank you for reading my post.
I have about 400 navigation case in my jsf application. will it decrease 
my jsf application performance under high load ?
Indeed i have a Tabset (using Studio creator) , it is in a page fragment 
and I add this page fragment  to all my 20 web pages.
and  each tab/subtab should be linked to a jsp page.
so 20page  * 19 link =380 navigation case. does it decrease my performance ?


is there any other solution for this case ?
i defined action="" , in my page fragment  for each tab , and in 
navigation description i defined 20 case for each jsp file.

Thank you


  
  


  






Re: I have about 400 navigation case , does it decrease the performance ?

2005-12-29 Thread Legolas Woodland

Dennis Byrne wrote:
Your users won't notice anything.  


Try using a global nav rule from-view-id/*/from-view-id to reduce the 
maintenance for those 400 rules.  This allows you to forward the request based upon the 
outcome (in your case, it means 1/20th the XML).

  

It really reduced the pain :-) , and works great.

I have another problem .
in each tab action i defined to set itself as  selected tab  , but it 
looks that when the page changes
my target jsp page show orijinal tabset that i  designed in the design 
time. (it does not change the tab based on what i click , because the 
tabset comes from a jspf)

now my question is :
how i can change the selected tab according to each page ?

-Original Message-
From: Legolas Woodland [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 29, 2005 04:55 PM
To: 'MyFaces Discussion'
Subject: I have about 400 navigation case , does it decrease the performance ?

Hi
Thank you for reading my post.
I have about 400 navigation case in my jsf application. will it decrease 
my jsf application performance under high load ?
Indeed i have a Tabset (using Studio creator) , it is in a page fragment 
and I add this page fragment  to all my 20 web pages.

and  each tab/subtab should be linked to a jsp page.
so 20page  * 19 link =380 navigation case. does it decrease my performance ?


is there any other solution for this case ?
i defined action= , in my page fragment  for each tab , and in 
navigation description i defined 20 case for each jsp file.


Thank you




Re: is there any tutorial or sample for Myface localization ?

2005-12-29 Thread Legolas Woodland




Werner Punz wrote:
Legolas
Woodland wrote:
  
  Hi

Thank you for reading my post.

is there any sample which i can learn localizing JSF application from
it ?

my questions are

1-where to put the .properties file , in Struts i could define them in
struts-config.xml  but i do not have any clue about jsf

2-how to call key from .properties file ? in struts bean:message  ,
but  is jsf i do not know

3-does it needs some specefic declaration to make a jsf application
localized ?



  
It is much easier than in
  
Struts (like most stuff in JSF), you do not have to defined it at all
in the config file.
  
The trick is that you have a tag for this stuff and thus can put
  
as many internationalisation files as you like into your forms:
  
  
f:loadbundle does the trick
  
  
it is way more flexible that way because you can add and remove bundles
  
on the fly as you like it.
  
  
  

Hi
Thank you for reply , i create all bundles , and i add them in 
faces-config.xml like the following 

...
  application
    locale-config
default-localefr/default-locale
supported-localeen_US/supported-locale
  /locale-config
  /application
  ..

when  i change the browser locale to fr it shows the fr resources ,
(it must show the fr in that case) and when my browser locale is 
en_US  , it shows englishe resources , is it possible to force the jsf
application to use an specefic locale until user change the locale by
pressing some button.
thank you.


BTW : how i can change the locale ?




what is technically diffrent between a page fragment and a page

2005-12-28 Thread Legolas Woodland

Hi
Thank you for reading my post.
can some one tell me what is different between a jsf page fragment and a 
jsf page ?



Thanks



is it possible to use a jsf application as a portlet ?

2005-12-19 Thread Legolas Woodland

is it possible to use a jsf application as a portlet ?
Hi
I have a jsf application and now i want to use it as a portlet .
what is steps to convert the jsf application to a portlet ?
is there any tutorial for this ?



Thank you


How i can Use Myface as runtime of My Creator application.

2005-12-18 Thread Legolas Woodland

Hi
Thank you for reading my post.
I want to replace Sun jsf  implementation which is with Creator  Studio 
with myface.
Problem with Original implementation (I think) is that it does not works 
OK with unicode entered date.
for example if i enter some unicode characters in one form and submit it 
to another form then it just shows some
#235 #64565 instead of my original characters , does any one faced such 
problem with Creator ?

will it resolve if i replace Sun JSF implementation with myface ?



Re: what libraries or frameworks i should use for my new jsf based project..... ?

2005-11-28 Thread Legolas Woodland
Hi
Thank you for your replys.
My question is from Mr McClanahan , does Studio creator 2 support :
1-adding new components to pallete ?
for example how i can add myface components to its component set ?
2-there is a table component which could be bind to a data table
now :
1-does it support inline editing ? i mean it shows an editable GUI to user based on field type ,use checkbox for boolean , text box for text..,
2-does it support saving that inline changed data ?
for example user uncheck some of check boxes , change some of text fields... , now how it can save them all backto database ?
On 11/28/05, Craig McClanahan [EMAIL PROTECTED] wrote:

On 11/27/05, Werner Punz [EMAIL PROTECTED]
 wrote: 
If you use Studio Creator2 you will have to use the RI,the code this tool generates is very good but roots into the 
com.sunhierarchy left and right, which is not TCK, hence you will haveto use the RI and additional creator runtimes for the new components. As for ajax, use ajax anywhere, I have not used it yet, but it looks
very good.
Werner,This is not quite right. The com.sun classes you are referring to are *not* dependent on the JSF RI ... they are a runtime layer on top of any standard 
JSF implementation (essentially at the same place that Shale would go).The RI is definitely used inside the tool, but you're free to replace it in the deployed runtime application.
Craig


Re: what libraries or frameworks i should use for my new jsf based project..... ?

2005-11-28 Thread Legolas Woodland




Craig McClanahan wrote:

  
  On 11/28/05, Legolas Woodland [EMAIL PROTECTED] wrote:
  
Hi
Thank you for your replys.
My question is from Mr McClanahan , does Studio creator
2 support :
1-adding new components to pallete ?
  
  
Yes. You can package a set of components (including optional
source for debugging, optional javadoc for popping up in the tool, and
optional design time code to provide a rich user experience for your
components) into a "component import library" that can be imported into
Creator.
  
A good starting point for information about this is an article
maintained by Edwin Goei, one of the Creator engineers:
  
 http://wiki.java.net/bin/view/Javatools/CustomComponentLibraries
  
  
  
for example how i can add myface components to its
component set ?

  
  
It will take some work to set up the metadata to describe these
components to Creator, plus it would be good to put some time into
creating the design time behavior for them. I'd be happy to
assist in these efforts.
  
  
  
2-there is a table component which could be bind to a
data table

now :
  
  
I presume you are speaking of the Table component that is included in
Creator 2 EA? 
  
  
  
1-does it support inline editing ? i mean it shows an
editable GUI to user based on field type ,use checkbox for boolean ,
text box for text..,
  
  
When you choose columns for your table, you also get to choose what
component goes inside the columns. They can be output or input
fields, depending on your needs (just like the standard JSF
h:dataTable component allows).
  
  
  
2-does it support saving that inline changed data ?
  
  
JSF does all that for you ... the table component itself doesn't need
to worry about it. 
  
  
  
for example user uncheck some of check boxes , change
some
of text fields... , now how it can save them all backto database ?
  
  
There are many examples of how to do this in the tutorials that are
available online (as is the product ... it's free if you register for
the Sun Developer Network):
  
  http://developers.sun.com/prodtech/javatools/jscreator/
  
Craig

  
  
  

On 11/28/05, Craig McClanahan [EMAIL PROTECTED]
wrote:

  
  On 11/27/05, Werner Punz [EMAIL PROTECTED]
   wrote:
  
If you use Studio Creator2 you will have to use the RI,
the code this tool generates is very good but roots into the com.sun
hierarchy left and right, which is not TCK, hence you will have
to use the RI and additional creator runtimes for the new
components. 
As for ajax, use ajax anywhere, I have not used it yet, but it looks

very good.
  
  
Werner,
  
This is not quite right. The "com.sun" classes you are referring to
are *not* dependent on the JSF RI ... they are
a runtime layer on top of any standard JSF
implementation (essentially at the same place that Shale would go).

  
The RI is definitely used inside the tool, but you're free to replace
it in the deployed runtime application.
  
  
Craig

  




  
  
  

Thank you very much for your very expressive answers ,
By your answer i found that for now there is no ready to use package of
JSF component for JSC ?
Another item , i worked with JSC and it seems to have problem with
Unicode data.
for example if i enter some data into a form and after submitting the
form i try to show them in another page all of my character are
converted to #2654 (their ) Unicode representation.
I followed this issue and found that it is a know problem and will be
solved in next version
now here are my question :
1-this is a problem related to Component library ?
2-if i make my application with current EA 2 version , will it works ok
in next version ?
3-is there any date estimation about next release ?
4-how does JSC handle Internationalization ?
in struts time i use bean:message tag and enter the tags in my resource
file. now JSC make all jobs easier , does it has i18n features for
text, ?
Thank you







what libraries or frameworks i should use for my new jsf based project..... ?

2005-11-27 Thread Legolas Woodland

Hi
Thank you for reading my post.
I should write a web application based on JSF and Sun java Studio Creator 2.
here is my requirements :
1-reporting and charting
2-database access ,(all kinds of bindings between database and grids , 
text box , checkbox )
3-some Ajax Operation (e.g : user enter a web site name and press Verify 
, i should look at my database and tell him/her whether the site is in 
our database or not)
4-users enter some html in my application to be stored into database , 
now i should determine whether they has Javascript embedded into their 
html or not

and if they has java script i should remove it.
5-what kind of security consideration i should have ? cross site attacks 
, brute force attacks , java script based attacks

is there some library that can help me about them ?


Thank you for your help.


Is it possible to use Myface components with SUN RI ?

2005-11-17 Thread Legolas Woodland
Hi
Thank you for reading my post.
is it possible to use some of Myface components with Sun refrence implementation ?
I mean using them in Creator studio ?


Thank you


how to convert a myface application to a standard portlet

2005-11-16 Thread Legolas Woodland
Hi
Thank you for reading my post.
is it possible to convert a jsf application to a Portlet ?
I mean a jsf application wich used myface implementation.
if it si feasible , can you pleas give me some hint about it


[OT]which web log hoster (provider ) to use ?

2005-10-02 Thread Legolas Woodland
HiThank you for reading my postWhere does usually Java developer make thier Blog ?I want to make a web log for myself and i want it to let me post blog entry which may contain imagesI checked te jroller and it has not possibility to add images to blog entry
Which of blog hoster provide this capability ?thank you.