Re: PPR in modal dialog

2007-08-24 Thread Sorin Silaghi
well the dialog is not inside any form ...  I have a from inside the
dialog... but it's my understanding that that's the way it should be.

I took a look and the ppr is in it's form as it should be.

On 8/24/07, Andrew Robinson <[EMAIL PROTECTED]> wrote:
>
> I haven't looked at the code, so I may be wrong, but most developers
> move popup elements (DIV tags) to the document.body so that they
> aren't affected by cropping from their parent elements (so they can be
> centered on the screen for example). The side effect is that the popup
> is no longer inside the form that it was originally under.
>
> If this is the case then you may have to use a separate form. I would
> use a DOM inspector (like firebug in firefox) to see how the dialog is
> being shown.
>
> -Andrew
>
> On 8/24/07, Sorin Silaghi <[EMAIL PROTECTED]> wrote:
> > Hello,
> >
> >   I have a ppr in a modal dialog... Basically what I want to do is
> to
> > update a list in the ppr with a commandLink... al inside the modal
> dialog of
> > course... the problem is the action from the commandLink isn't called...
> > everything else looks ok ... even the data for the list from the backing
> > bean is accessed and I can see the POST and reply in firebug... so
> > everything else works but the action...
> >
> >Is this a normal behavior, and if so how could I work around
> this.
> >
> > Thank You,
> >Sorin.
> >
>


Re: t:popup bug in tomahawk 1.1.5

2007-08-24 Thread Madhav Bhargava
Sorry, forgot to provide the code:

JSP code:






   


















Thanks,
Madhav


On 8/24/07, Madhav Bhargava <[EMAIL PROTECTED]> wrote:
>
> Hi All,
>
> We have a label and an input text next to it. Place the cursor on the
> input text and now move the mouse over the label. The popup showing the
> tooltip comes up.
>
> The problem is that on IE the blinking cursor is still shown on the
> tooptip. I did try and dig out if there was a JIRA raised and i found this:
> http://www.mail-archive.com/[EMAIL PROTECTED]/msg09075.html
>
> According to it was marked as closed. Ideally the fix should be present in
> tomahawk 1.1.5 and myfaces 1.1.5 which i am using at present.
>
> Please let me know if this defect is being again worked upon.
>
> Thanks,
> madhav
>
> --
> When I tell the truth, it is not for the sake of convincing those who do
> not know it, but for the sake of defending those that do




-- 
When I tell the truth, it is not for the sake of convincing those who do not
know it, but for the sake of defending those that do


bug in t:panelTabbedPane component

2007-08-24 Thread Madhav Bhargava
Hi All,

Environment:

browser: IE 6.0.2
myfaces: 1.1.5
tomahawk: 1.1.5

On IE the many a times the tabs are shown as buttons and not tabs. This does
not always happens.

Following is the code in the JSP:

















CSS styleclass used:

.TABBEDPANE{
font-family:Arial, Helvetica, sans-serif;
font-size: 10px;
width: 70%;
cellspacing: 10px;
cellpadding: 3px;
rules: none;
border: 1px solid gray;
}

I found that a similar issue has been raised earlier:
http://www.nabble.com/t:panelTabbedPane-tab-%3Cinput%3E-style-t505803.html
http://mail-archives.apache.org/mod_mbox/myfaces-users/200601.mbox/[EMAIL 
PROTECTED]

Unfortunately no concrete solutions was provided. Is this issue being worked
upon?

Thanks,
Madhav

-- 
When I tell the truth, it is not for the sake of convincing those who do not
know it, but for the sake of defending those that do


t:popup bug in tomahawk 1.1.5

2007-08-24 Thread Madhav Bhargava
Hi All,

We have a label and an input text next to it. Place the cursor on the input
text and now move the mouse over the label. The popup showing the tooltip
comes up.

The problem is that on IE the blinking cursor is still shown on the tooptip.
I did try and dig out if there was a JIRA raised and i found this:
http://www.mail-archive.com/[EMAIL PROTECTED]/msg09075.html

According to it was marked as closed. Ideally the fix should be present in
tomahawk 1.1.5 and myfaces 1.1.5 which i am using at present.

Please let me know if this defect is being again worked upon.

Thanks,
madhav

-- 
When I tell the truth, it is not for the sake of convincing those who do not
know it, but for the sake of defending those that do


Re: [Trinidad] Upgrading to 1.0.2

2007-08-24 Thread Adam Winer
FWIW, in Tomcat 5.0, the PPR code has no issues
stripping the doctype.  Pretty sure it works in OC4J
too.  Going to test Glassfish now.

-- Adam



On 8/23/07, Adam Winer <[EMAIL PROTECTED]> wrote:
> trh:head doesn't output the doctype - it's trh:html and/or
> tr:document.
>
> I don't think it's that the PPR code is stripping only 1 doctype.
> I think it's that the two doctypes are written out through different
> mechanisms (ResponseWriter or straight to the serlvet response),
> and PPR is for some reason only catching one of them.
> I'd need to test this out to see exactly what's happening.
>
> -- Adam
>
>
>
> On 8/23/07, Perkins, Nate-P63196 <[EMAIL PROTECTED]> wrote:
> > Adam,
> >
> > I've noticed that the combination of the trh:head tag (which outputs a
> > doctype) and my jsp:output (which also outputs a doctype), creates 2
> > doctypes in the response.  Firefox strips out the 2nd doctype but IE
> > does not.  So perhaps the PPR code is stripping out only 1 of the
> > doctypes?
> >
> >
> > Nate Perkins
> > 480-441-3667
> > [EMAIL PROTECTED]
> >
> > >This email message is for the sole use of the intended recipient(s) and
> > may contain GDC4S
> > > confidential or privileged information. Any unauthorized review, use,
> > disclosure or distribution
> > > is prohibited. If you are not an intended recipient, please contact
> > the sender by reply email and
> > > destroy all copies of the original message.
> > >
> >
> > -Original Message-
> > From: Adam Winer [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, August 22, 2007 10:57 PM
> > To: MyFaces Discussion
> > Subject: Re: [Trinidad] Upgrading to 1.0.2
> >
> > If you remove the doctype-root-element, doctype-system,
> > and doctype-public off of jsp:output, does the problem
> > go away?  It looks as though that doctype is getting
> > pushed straight into the content stream.  There's code
> > in Trinidad to trim out the doctype (XmlHttpServletResponse
> > and XmlOutput) during an XMLHttp request - don't know
> > why it's not functioning here.
> >
> > -- Adam
> >
> >
> > On 8/22/07, Perkins, Nate-P63196 <[EMAIL PROTECTED]> wrote:
> > > Ok,
> > >
> > > Here's the simplest example I could muster, this results in the same
> > > problem.  I am deploying to JBoss-4.0.5 using Trinidad 1.0.2 and using
> > > the RI 1.1
> > >
> > > Test.jspx:
> > >
> > > 
> > >  > > xmlns:jsp="http://java.sun.com/JSP/Page";
> > > version="2.0"
> > > xmlns:f="http://java.sun.com/jsf/core";
> > > xmlns:trh="http://myfaces.apache.org/trinidad/html";
> > > xmlns:tr="http://myfaces.apache.org/trinidad";
> > > xmlns:h="http://java.sun.com/jsf/html";>
> > > 
> > > 
> > >  > > omit-xml-declaration="false"
> > > doctype-root-element="html"
> > >
> > > doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";
> > > doctype-public="-//W3C//DTD XHTML 1.0
> > > Strict//EN" />
> > > 
> > > response.addHeader("pragma", "no-store,no-cache");
> > > response.setHeader("cache-control", "no-cache, no-store, must
> > > re-validate,max-age=-1");
> > > response.addHeader("cache-control", "pre-check=0,
> > > post-check=0");
> > > response.setDateHeader("expires", 0);
> > >   
> > >  > > contentType="text/html;charset=UTF-8" />
> > > 
> > >  > > http-equiv="Content-Type"
> > > content="text/html; charset=UTF-8" />
> > >  > > path="#{NMSPanelPageUtil.cssLocation}" />
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > >  > > id="input"
> > >
> > > value="#{testBB.input}"
> > > label="Input:"
> > >
> > > partialTriggers="partialTestButton" />
> > >  > >
> > > id="partialTestButton"
> > > text="PPR
> > Test"
> > >
> > > action="#{testBB.action}"
> > >
> > > partialSubmit="true" />
> > >  > >
> > > id="partialOutput"
> > >
> > > value="#{testBB.output}"
> > >
> > > partialTriggers="partialTestButton" />
> > >  > >
> > > id="fullTestButton"
> > > text="Full
> > > Submission Test"
> > >
> > > action="#{testBB.action}"/>
> > >  > >
> > id="fullOutput"
> > >
> > > value="#{testBB.output}"/>
> > > 

Re: [Trinidad] XMLMenuModel bug

2007-08-24 Thread Adam Winer
Looking at it again, I've no idea how this could happen.
validatorArray should always be non-null.  I'll add some
defensive code, but I can't imagine why you're seeing
this.

-- Adam


On 8/24/07, Adam Winer <[EMAIL PROTECTED]> wrote:
> Looks like a generic (and very simple) issue with some of the
> client-side validation changes I've made.  I'll fix this.
>
> -- Adam
>
>
>
> On 8/24/07, Luka Surija <[EMAIL PROTECTED]> wrote:
> > Actually nothing happens, I've found that Firebug is displaying this
> > error message:
> >
> > validatorArray has no properties:
> >
> > _multiValidate(form#j_id1 index.xhtml, "j_id5:0:j_id6", ["j_id28", 0,
> > undefined, 17 more...])Common1_0_3.js (line 5248)
> > _validateInline(form#j_id1 index.xhtml, "j_id5:0:j_id6", ["j_id28", 0,
> > undefined, 17 more...])Common1_0_3.js (line 4589)
> > _j_id1Validator(form#j_id1 index.xhtml, "j_id5:0:j_id6")index.xhtml
> > (line 245)
> > _validateForm(form#j_id1 index.xhtml, "j_id5:0:j_id6")Common1_0_3.js
> > (line 4508)
> > submitForm(form#j_id1 index.xhtml, 1, Object source=j_id5:0:j_id6,
> > undefined)Common1_0_3.js (line 4765)
> > onclick(click clientX=0, clientY=0)index.xhtml (line 1)
> > for(var j=0;j >
> >
> >
> > Luka Surija wrote:
> > > If found pretty dummy bug in XMLMenuModel.
> > >
> > > If I call an action method trough XMLMenuModel then the method is
> > > executed, but no navigation is executed.
> > >
> > >
> > > WorkingTaskAdmin:
> > >
> > > public String addNewWorkingTask(){
> > >sessionBean.addNewWorkingTask();
> > >return "service:workingTaskWizard"; -- invoking in
> > > tr:commandMenuItem  act as where "return null;"
> > >}
> > >
> > > menu-model.xml:
> > >
> > >  > > action="#{WorkingTaskAdmin.addNewWorkingTask}"
> > > focusViewId="/service/workingTaskWizard.xhtml" />
> > >
> > >
> > > but if i press this button then everything works as expected.
> > >  > > action="#{WorkingTaskAdmin.addNewWorkingTask}" />
> > >
> > >
> > > I'm using trinidad 1.0.3-core trunk.
> > >
> >
> >
>


Re: tomahawk panelTabbedPane with other components behavior

2007-08-24 Thread �rico
Which validations are you reffering to ?

The two things that I tried to implement were scrolling and commandLink action 
but as I said none of them is working

What could be the reason to the components do not work ok under this structure ?


David Delbecq <[EMAIL PROTECTED]> wrote:   Check your validation, same 
kind of structure here (tabbedpane, ui:insert, datatabels, actions, just not 
used scroller).
 Be aware of following fact if you use server side tab switching:
 1) switching tabs will not triggers, afaik, the change listeners
 2) when submiting, only the current tab will be submitted, validated, and 
applied.
 Érico Teixeira a écrit : I have a xhtml file where I added a panelTabbedPane 
and four panelTabs in it
   
 Inside first panelTab definition I have facelets  and  ...
   
 this tab1.xhtml contains a dataTable and a dataScroller
   
 My problem is that nothing is working such as scroller events or commandLink 
actions ...
   

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

   
-
Choose the right car based on your needs.  Check out Yahoo! Autos new Car 
Finder tool.

Re: [Trinidad] XMLMenuModel bug

2007-08-24 Thread Adam Winer
Looks like a generic (and very simple) issue with some of the
client-side validation changes I've made.  I'll fix this.

-- Adam



On 8/24/07, Luka Surija <[EMAIL PROTECTED]> wrote:
> Actually nothing happens, I've found that Firebug is displaying this
> error message:
>
> validatorArray has no properties:
>
> _multiValidate(form#j_id1 index.xhtml, "j_id5:0:j_id6", ["j_id28", 0,
> undefined, 17 more...])Common1_0_3.js (line 5248)
> _validateInline(form#j_id1 index.xhtml, "j_id5:0:j_id6", ["j_id28", 0,
> undefined, 17 more...])Common1_0_3.js (line 4589)
> _j_id1Validator(form#j_id1 index.xhtml, "j_id5:0:j_id6")index.xhtml
> (line 245)
> _validateForm(form#j_id1 index.xhtml, "j_id5:0:j_id6")Common1_0_3.js
> (line 4508)
> submitForm(form#j_id1 index.xhtml, 1, Object source=j_id5:0:j_id6,
> undefined)Common1_0_3.js (line 4765)
> onclick(click clientX=0, clientY=0)index.xhtml (line 1)
> for(var j=0;j
>
>
> Luka Surija wrote:
> > If found pretty dummy bug in XMLMenuModel.
> >
> > If I call an action method trough XMLMenuModel then the method is
> > executed, but no navigation is executed.
> >
> >
> > WorkingTaskAdmin:
> >
> > public String addNewWorkingTask(){
> >sessionBean.addNewWorkingTask();
> >return "service:workingTaskWizard"; -- invoking in
> > tr:commandMenuItem  act as where "return null;"
> >}
> >
> > menu-model.xml:
> >
> >  > action="#{WorkingTaskAdmin.addNewWorkingTask}"
> > focusViewId="/service/workingTaskWizard.xhtml" />
> >
> >
> > but if i press this button then everything works as expected.
> >  > action="#{WorkingTaskAdmin.addNewWorkingTask}" />
> >
> >
> > I'm using trinidad 1.0.3-core trunk.
> >
>
>


RE: [Trinidad] Upgrading to 1.0.2

2007-08-24 Thread Perkins, Nate-P63196
+1 from me...if I get a vote : )
 

Nate Perkins 
480-441-3667 
[EMAIL PROTECTED] 

This email message is for the sole use of the intended recipient(s) and
may contain GDC4S 
 confidential or privileged information. Any unauthorized review, use,
disclosure or distribution 
 is prohibited. If you are not an intended recipient, please contact the
sender by reply email and 
 destroy all copies of the original message. 

 



From: Simon Lessard [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 24, 2007 5:53 AM
To: MyFaces Discussion
Subject: Re: [Trinidad] Upgrading to 1.0.2


+1, good idea. I would tend to add it on both.


On 8/23/07, Adam Winer <[EMAIL PROTECTED]> wrote: 

I'm getting the feeling that we really need to add a flag
to at least trh:html or both trh:html and tr:document
that supports forcing quirks mode.

Thoughts?

-- Adam


On 8/23/07, Andrew Robinson < [EMAIL PROTECTED]>
wrote:
> You can use IE6 in quirks mode and firefox in standards mode
by
> subclassing the tr:document renderer.
>
> If a comment appears before the doc type, IE will not go into
standards mode. 
>
> Here is some code if you want to do it this way to force only
IE into
> quirks mode while using tr:document:
>
> public class DocumentRenderer
>   extends
>
org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.DocumentRendere
r 
> {
>
>   /**
>*
>*/
>   public DocumentRenderer()
>   {}
>
>   /**
>* @param type
>*/
>   public DocumentRenderer(Type type)
>   { 
> super(type);
>   }
>
>   /**
>* @see
org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.DocumentRendere
r#encodeAll(javax.faces.context.FacesContext,
> org.apache.myfaces.trinidad.context.RenderingContext ,
> javax.faces.component.UIComponent,
> org.apache.myfaces.trinidad.bean.FacesBean)
>*/
>   @Override
>   protected void encodeAll(FacesContext context,
RenderingContext arc,
> UIComponent component, FacesBean bean) throws IOException 
>   {
> if (Agent.AGENT_IE.equals(arc.getAgent().getAgentName()))
> {
>   context.getResponseWriter().write("");
> }
> super.encodeAll (context, arc, component, bean);
>   }
> }
>
>
> On 8/23/07, Perkins, Nate-P63196 <[EMAIL PROTECTED]>
wrote:
> >
> >
> > I put a lot of time into this problem, albeit a while ago,
but I could not
> > find a way to satisfy my requirements for IE6 in standard
mode, I would love
> > to be able to, but I have not found a way.  I'll post the
general structure 
> > and the css and perhaps you can help?
> >
> > The basic structure is this:
> >
> > 
> > Some necessary banner text 
> > 
> > 
> > Whatever the particular page requires
> > 
> > 
> > Again, some necessary banner text 
> > 
> >
> > The requirement is that the top_bar and the bottom_bar are
always visible
> > and in the same position (at the top and the bottom,
respectively :) ) but
> > not covering the main_content while main_content can scroll
as necessary. 
> >
> > Here's the css that I used to accomplish this, this works
properly in
> > Firefox regardless of the doc-type, but again, in IE6 it
only works in
> > quirks mode.
> > 
> > body {
> > border: 0pt none;
> > margin: 0;
> > padding 0;
> >
> > height: 100%;
> > max-height: 100%;
> >
> > width: 100%;
> > max-width: 100%; 
> > overflow: hidden;
> > }
> >
> > * html body {
> > padding: 5px 0pt 55px;
> > }
> >
> > #main_content {
> > bottom: 30px;
> > left: 0px; 
> > overflow: auto;
> > position: fixed;
> > right: 0;
> > top: 25px;
> > }
> >
> > * html #main_content {
> > height: 100%;
> > position: relative; 
> > width: 100%;
> > }
> >
> > #top_bar {
> > height: 25px;
> >
> > position: absolute;left: 0;
> > top: 0;
> > width: 100%;
> > } 
> >
> > #bottom_bar {
> >
> > height: 25px;
> >
> > position: absolute;left: 0;
> > bottom: 0;
> > width: 100%;
> > }
> >
> > 
> > Nate Perkins
> > 480-441-3667
> > [EMAIL PROTECTED]
   

Re: [Trinidad] must be in a ?

2007-08-24 Thread Andrew Robinson
Why not just use a form for just the poll?



On 8/24/07, Chris Hane <[EMAIL PROTECTED]> wrote:
> I was trying to use  on a template (facelets) page.  However, I
> ran into an error that says the  must be used in a form (which I
> have put the specific pages and not the master template).
>
> Is there anyway around this?  I would like to have  outside of a
> .
>
> Thanks,
> Chris
>


[Trinidad] must be in a ?

2007-08-24 Thread Chris Hane
I was trying to use  on a template (facelets) page.  However, I 
ran into an error that says the  must be used in a form (which I 
have put the specific pages and not the master template).


Is there anyway around this?  I would like to have  outside of a 
.


Thanks,
Chris


Re: tomahawk panelTabbedPane with other components behavior

2007-08-24 Thread David Delbecq
Check your validation, same kind of structure here (tabbedpane, 
ui:insert, datatabels, actions, just not used scroller).

Be aware of following fact if you use server side tab switching:
1) switching tabs will not triggers, afaik, the change listeners
2) when submiting, only the current tab will be submitted, validated, 
and applied.

Érico Teixeira a écrit :
I have a xhtml file where I added a panelTabbedPane and four panelTabs 
in it


Inside first panelTab definition I have facelets  and 
 ...


this tab1.xhtml contains a dataTable and a dataScroller

My problem is that nothing is working such as scroller events or 
commandLink actions ...



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




tomahawk panelTabbedPane with other components behavior

2007-08-24 Thread �rico
I have a xhtml file where I added a panelTabbedPane and four panelTabs in it

Inside first panelTab definition I have facelets  and  ...

this tab1.xhtml contains a dataTable and a dataScroller

My problem is that nothing is working such as scroller events or commandLink 
actions ...

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

Re: PPR in modal dialog

2007-08-24 Thread Andrew Robinson
I haven't looked at the code, so I may be wrong, but most developers
move popup elements (DIV tags) to the document.body so that they
aren't affected by cropping from their parent elements (so they can be
centered on the screen for example). The side effect is that the popup
is no longer inside the form that it was originally under.

If this is the case then you may have to use a separate form. I would
use a DOM inspector (like firebug in firefox) to see how the dialog is
being shown.

-Andrew

On 8/24/07, Sorin Silaghi <[EMAIL PROTECTED]> wrote:
> Hello,
>
>   I have a ppr in a modal dialog... Basically what I want to do is to
> update a list in the ppr with a commandLink... al inside the modal dialog of
> course... the problem is the action from the commandLink isn't called...
> everything else looks ok ... even the data for the list from the backing
> bean is accessed and I can see the POST and reply in firebug... so
> everything else works but the action...
>
>Is this a normal behavior, and if so how could I work around this.
>
> Thank You,
>Sorin.
>


Skinning NavigationTree

2007-08-24 Thread Yang, Jianing
Hello,

I tried to use this entry in my skinning file to apply a different icon,
it had no effect. 

af|navigationTree::disclosed-icon
{
content:url(/MyWeb/images/treeplus.gif)
}

af|navigationTree::undisclosed-icon 
{
content:url(/MyWeb/images/treeminus.gif) 
}

Any help would be greatly appreciated.
JN.Yang



PPR in modal dialog

2007-08-24 Thread Sorin Silaghi
Hello,

  I have a ppr in a modal dialog... Basically what I want to do is to
update a list in the ppr with a commandLink... al inside the modal dialog of
course... the problem is the action from the commandLink isn't called...
everything else looks ok ... even the data for the list from the backing
bean is accessed and I can see the POST and reply in firebug... so
everything else works but the action...

   Is this a normal behavior, and if so how could I work around this.

Thank You,
   Sorin.


Problem with MyFaces in a cluster: CacheRenderKit & NotSerializableException

2007-08-24 Thread Gerogiannakis Stylianos
Hello, all,

(Please, accept my apologies for any cross-posting)

We are facing a tricky as well as blocking problem.

We are developing a JSF application on Weblogic 9.2 using Trinidad 1.0.

In stand-alone mode there is no problem. When we try to execute the
application on a cluster, as soon the first JSF page is called we get a
java.io.NotSerializable exception in the console. The exception follows
at the end of the mail.

The class in question FacesContextFactoryImpl$CacheRenderKit indeed only
extends FacesContext which is not Serializable.

My first thought would be if we are trying to do something funny in our
code, but then again the error appears upon rendering the welcome page,
before any of our business logic code. So, I guess it is an internal
framework issue.
 
Unfortunately, the stack trace is not very helpful as to pinpoint the
place in the code where the class is added in the session: session
serialization occurs asynchronously in Weblogic.

Is there some hidden parameter/switch that we have overlooked? 
Is it a known issue/limitation?
If it is the latter, do you think that making the class Serializable
would make the problem go away?
We are rather short in available time, so we need the quickest possible
fix.
 
Thank you for any help you may provide.

Cheers,
S.

java.rmi.MarshalException: failed to marshal
update(Lweblogic.cluster.replication.ROID;ILjava.io.Serializable;Ljava.l
ang.Object;); nested exception is:
java.io.NotSerializableException:
org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$Cach
eRenderKit
at
weblogic.rjvm.BasicOutboundRequest.marshalArgs(BasicOutboundRequest.java
:91)
at
weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:222)
at
weblogic.cluster.replication.ReplicationManager_921_WLStub.update(Lweblo
gic.cluster.replication.ROID;ILjava.io.Serializable;Ljava.lang.Object;)V
(Unknown Source)
at
weblogic.cluster.replication.ReplicationManager.updateSecondary(Replicat
ionManager.java:528)
at
weblogic.servlet.internal.session.ReplicatedSessionData.syncSession(Repl
icatedSessionData.java:558)
at
weblogic.servlet.internal.session.ReplicatedSessionContext.sync(Replicat
edSessionContext.java:82)
at
weblogic.servlet.internal.ServletRequestImpl$SessionHelper.syncSession(S
ervletRequestImpl.java:2507)
at
weblogic.servlet.internal.ServletRequestImpl$SessionHelper.syncSession(S
ervletRequestImpl.java:2482)
at
weblogic.servlet.internal.ServletResponseImpl$1.run(ServletResponseImpl.
java:1308)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSu
bject.java:321)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121
)
at
weblogic.servlet.internal.ServletResponseImpl.send(ServletResponseImpl.j
ava:1302)
at
weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java
:1368)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
Caused by: java.io.NotSerializableException:
org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$Cach
eRenderKit
at
java.io.ObjectOutputStream.writeObject0(Ljava.lang.Object;Z)V(Unknown
Source)
at
java.io.ObjectOutputStream.defaultWriteFields(Ljava.lang.Object;Ljava.io
.ObjectStreamClass;)V(Unknown Source)
at
java.io.ObjectOutputStream.writeSerialData(Ljava.lang.Object;Ljava.io.Ob
jectStreamClass;)V(Unknown Source)
at
java.io.ObjectOutputStream.writeOrdinaryObject(Ljava.lang.Object;Ljava.i
o.ObjectStreamClass;Z)V(Unknown Source)
at
java.io.ObjectOutputStream.writeObject0(Ljava.lang.Object;Z)V(Unknown
Source)
at
java.io.ObjectOutputStream.writeObject(Ljava.lang.Object;)V(Unknown
Source)
at
weblogic.servlet.internal.session.ReplicatedSessionChange.writeExternal(
ReplicatedSessionChange.java:114)
at
java.io.ObjectOutputStream.writeExternalData(Ljava.io.Externalizable;)V(
Unknown Source)
at
java.io.ObjectOutputStream.writeOrdinaryObject(Ljava.lang.Object;Ljava.i
o.ObjectStreamClass;Z)V(Unknown Source)
at
java.io.ObjectOutputStream.writeObject0(Ljava.lang.Object;Z)V(Unknown
Source)
at
java.io.ObjectOutputStream.writeObject(Ljava.lang.Object;)V(Unknown
Source)
at
weblogic.rjvm.MsgAbbrevOutputStream.writeObject(MsgAbbrevOutputStream.ja
va:614)
at
weblogic.rjvm.MsgAbbrevOutputStream.writeObjectWL(MsgAbbrevOutputStream.
java:605)
at weblogic.rmi.internal.ObjectIO.writeObject(ObjectIO.java:38)
at
weblogic.rjvm.BasicOutboundRequest.marshalArgs(BasicOutboundRequest.java
:87)
... 14 more
 



Re: [Trinidad] Removing Text Icons (* and X)

2007-08-24 Thread Scott O'Bryan
Ah yeah, that is your issue.  The parsing of the skinning file can take 
a while, so it's parsed when it's first loaded for each platform (rtl 
and browser) and then it sort of hang around.  During development I 
always restart my server because JDEV does that by default.  Sorry I 
didn't mention it.


Scott

DLC wrote:

When I started up my machine this morning I found that

.AFErrorIcon:alias { content:url( ... ); }

DOES work correctly.  I didn't realize that I'd need to reboot the server in 
order for the changes
to propagate.  I'd just assumed that they would because other changes to the 
css file do.

Thanks again for your help,

--Dave

--- Jeanne Waldman <[EMAIL PROTECTED]> wrote:

  

I tried this in the purple skin:
.AFErrorIcon:alias { content:url(/skins/purple/images/btns.gif); }

and ran the purple skin and the icon.jspx component demo and set 
name="error" and I saw my image.


It should work, so maybe there is a typo?

- Jeanne

DLC wrote:


I've tried it with both one and two colons.  Neither seems to work.

--Dave

--- Jeanne Waldman <[EMAIL PROTECTED]> wrote:


-
  There's a typo here in your email, and not sure if it is the same inyour code:

:alias (one colon, not two)

- Jeanne

DLC wrote:  
Well, maybe I should be more specific.  This is what I've tried:.AFErrorIcon::alias { content:

url(/images/icon_alert.gif); }.AFErrorIcon::alias { content: 'W'; }.AFErrorIcon 
{ content:
url(/images/icon_alert.gif); }.AFErrorIcon { content: 'W'; }None of these have 
any effect on
  

the


rendering of the error icon (e.g., what's rendered next to arequired input 
field that is blank
when attempting to submit).  That is rendered like this:  

title="Error"


name="_msgAnc_username">XI would prefer it to render something like 
this:Does that help?--Dave--- Scott O'Bryan <[EMAIL 
PROTECTED]>
  

wrote:

 
  
Dave, it needs to be an "icon".  Can't be an X..DLC wrote:
  
Thanks for your input.  Unfortunately, I can't seem to get this to work right.  Maybe I'm
justconfused.I'm trying to replace the default AFErrorIcon (which is an 'X') with my own. 
  

Could


someone show me an example that they haveworking?Thanks,--Dave--- Scott O'Bryan
<[EMAIL PROTECTED]> wrote:
  
You can do that in the css .  The skinning framework parses the css and any icons which are

specified in the skinning file will override the default values.  Use the 
"content:" as
  

specified

in the below example to specify which image to use.ScottPerkins, Nate-P63196 wrote:   
  
  
Would this also work for the af|chooseDate::launch-icon...the defaultfor this is a green
  

calendar,


but I would like to change it to a bluecalendar.Can I do that with css or do I 
need to change
  

the

code? Nate [EMAIL PROTECTED]  
  
This email message is for the sole use of the intended recipient(s) and   
  

may contain GDC4S  
  
confidential or privileged information. Any unauthorized review, use,

disclosure or distribution  
  
is prohibited. If you are not an intended recipient, please contact

the sender by reply email and  
  
destroy all copies of the original message.

-Original Message-From: Andrew Robinson [mailto:[EMAIL PROTECTED] Sent:

Thursday, August 23, 2007 11:22 AMTo: MyFaces DiscussionSubject: Re: [Trinidad] 
Removing Text
Icons (* and X)You can find the code in BaseDesktopSkin.java that registers the
  

defaulticons.In


your skin, you should be able to do things like:.AFDetailDisclosedIcon::alias { 
 content:
"V";}or.AFDetailDisclosedIcon::alias {  content: 
url(/skin/myskin/icons/myIcon.gif);}-AndrewOn
8/23/07, DLC <[EMAIL PROTECTED]> wrote:  
  
Yes.  Sorry, I forgot to add [Trinidad] to the subject.--Dave--- Andrew Robinson
<[EMAIL PROTECTED]> wrote:
  
Is this in relation to Trinidad?On 8/22/07, DLC <[EMAIL PROTECTED]> wrote:  
  
   

   
  
Hi all,I would like to substitute the text icons * and X for required and 
  
   

  
  
error markers on fields  

with my  
  
own markup (an image and/or other text).  Is there any way to do  
  
   

 
  
this?  If so, how?  
 

Re: last version of jscook menu is broken

2007-08-24 Thread Gerald Müllan
Hi,

i have fixed the bug in latest svn head.

cheers,

Gerald

On 8/9/07, Gonzalo Nuñez <[EMAIL PROTECTED]> wrote:
> Hi,
>Yes, the problem is related to the fix for trinidad. I saw that the patch
> proposed to solve the issue differ from patch applied to the code. In the
> code we have this line  "if (submitForm === undefined) {" and in the fix
> proposed we have the following line "if (typeof submitForm=="undefined") {"
> of code.
>
> Regards,
>
> Gonzalo Nuñez.
>
>
>  On 8/8/07, Cagatay Civici <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > It looks like it's related to;
> >
> > http://issues.apache.org/jira/browse/TOMAHAWK-1029
> >
> > Seems the fix for trinidad case breaks non-trinidad cases.
> >
> > I'll file an issue and look at it,
> >
> > Regards,
> >
> > Cagatay
> >
> > [EMAIL PROTECTED]
> >
> >
> >
> > On 8/8/07, Gonzalo Nuñez <[EMAIL PROTECTED]> wrote:
> > > Hi,
> > >   I have the same problem, I got 'submitForm is not defined' error in
> the MyFacesHack.js javascript file when I try to submit an action. Any news
> about it?
> > >
> > > Regards,
> > > Nuñez, Daniel Gonzalo.
> > >
> > >
> > >
> > > On 8/3/07, Bogdan Sava <[EMAIL PROTECTED]> wrote:
> > > > jscook menu does not work in lasts versions.
> > > > It is stuck!
> > > >
> > > > http://www.irian.at/myfaces/jscookmenu.jsf
> > > >
> http://example.irian.at/example-simple-20070803/jscookmenu.jsf
> > > >
> > > > Any ideea ?
> > > > Thank you!
> > > > B
> > > >
> > >
> > >
> >
> >
>
>


-- 
http://www.irian.at

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

Professional Support for Apache MyFaces


Re: [Myfaces][facelets] selectManyListbox display problem

2007-08-24 Thread lmk

Im wondering  if  the probleme  is caused by using facelets and ajax4jsf
..that chang the render of component.

I' just like to have a combo box with multiple select..

thanks..


lmk wrote:
> 
> helloo;
> 
> I have a strange problem with selectManyListbox or selectManayMeny, I
> don't get usual display like a simple html listbox..
> 
>  http://www.nabble.com/file/p12295250/debug.jpg 
> 
> code:
> 
> 
> 
> 
>  
> 
> 
> 
>
> 
> 
> how to get a simple manyListBox ?
> 
> thanks
> 

-- 
View this message in context: 
http://www.nabble.com/-Myfaces--facelets--selectManyListbox-display-problem-tf4318050.html#a12313951
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: [Trinidad] Removing Text Icons (* and X)

2007-08-24 Thread DLC
When I started up my machine this morning I found that

.AFErrorIcon:alias { content:url( ... ); }

DOES work correctly.  I didn't realize that I'd need to reboot the server in 
order for the changes
to propagate.  I'd just assumed that they would because other changes to the 
css file do.

Thanks again for your help,

--Dave

--- Jeanne Waldman <[EMAIL PROTECTED]> wrote:

> I tried this in the purple skin:
> .AFErrorIcon:alias { content:url(/skins/purple/images/btns.gif); }
> 
> and ran the purple skin and the icon.jspx component demo and set 
> name="error" and I saw my image.
> 
> It should work, so maybe there is a typo?
> 
> - Jeanne
> 
> DLC wrote:
> > I've tried it with both one and two colons.  Neither seems to work.
> >
> > --Dave
> >
> > --- Jeanne Waldman <[EMAIL PROTECTED]> wrote:
> >
> >
> > -
> >   There's a typo here in your email, and not sure if it is the same inyour 
> > code:
> >
> > :alias (one colon, not two)
> >
> > - Jeanne
> >
> > DLC wrote:  
> > Well, maybe I should be more specific.  This is what I've 
> > tried:.AFErrorIcon::alias { content:
> > url(/images/icon_alert.gif); }.AFErrorIcon::alias { content: 'W'; 
> > }.AFErrorIcon { content:
> > url(/images/icon_alert.gif); }.AFErrorIcon { content: 'W'; }None of these 
> > have any effect on
> the
> > rendering of the error icon (e.g., what's rendered next to arequired input 
> > field that is blank
> > when attempting to submit).  That is rendered like this: > class="AFErrorIconStyle"
> title="Error"
> > name="_msgAnc_username">XI would prefer it to render something like 
> > this: > src="/images/icon_alert.gif" />Does that help?--Dave--- Scott O'Bryan 
> > <[EMAIL PROTECTED]>
> wrote:
> >  
> >   
> > Dave, it needs to be an "icon".  Can't be an X..DLC wrote:
> >   
> > Thanks for your input.  Unfortunately, I can't seem to get this to work 
> > right.  Maybe I'm
> > justconfused.I'm trying to replace the default AFErrorIcon (which is an 
> > 'X') with my own. 
> Could
> > someone show me an example that they haveworking?Thanks,--Dave--- Scott 
> > O'Bryan
> > <[EMAIL PROTECTED]> wrote:
> >   
> > You can do that in the css .  The skinning framework parses the css and any 
> > icons which are
> > specified in the skinning file will override the default values.  Use the 
> > "content:" as
> specified
> > in the below example to specify which image to use.ScottPerkins, 
> > Nate-P63196 wrote:   
> 
> >   
> > Would this also work for the af|chooseDate::launch-icon...the defaultfor 
> > this is a green
> calendar,
> > but I would like to change it to a bluecalendar.Can I do that with css or 
> > do I need to change
> the
> > code? Nate [EMAIL PROTECTED]  
> >   
> > This email message is for the sole use of the intended recipient(s) and 
> >   
> 
> > 
> > may contain GDC4S  
> >   
> > confidential or privileged information. Any unauthorized review, use,   
> >  
> > 
> > disclosure or distribution  
> >   
> > is prohibited. If you are not an intended recipient, please contact 
> >
> > 
> > the sender by reply email and  
> >   
> > destroy all copies of the original message.
> > 
> > -Original Message-From: Andrew Robinson [mailto:[EMAIL PROTECTED] 
> > Sent:
> > Thursday, August 23, 2007 11:22 AMTo: MyFaces DiscussionSubject: Re: 
> > [Trinidad] Removing Text
> > Icons (* and X)You can find the code in BaseDesktopSkin.java that registers 
> > the
> defaulticons.In
> > your skin, you should be able to do things 
> > like:.AFDetailDisclosedIcon::alias {  content:
> > "V";}or.AFDetailDisclosedIcon::alias {  content: 
> > url(/skin/myskin/icons/myIcon.gif);}-AndrewOn
> > 8/23/07, DLC <[EMAIL PROTECTED]> wrote:  
> >   
> > Yes.  Sorry, I forgot to add [Trinidad] to the subject.--Dave--- Andrew 
> > Robinson
> > <[EMAIL PROTECTED]> wrote:
> >   
> > Is this in relation to Trinidad?On 8/22/07, DLC <[EMAIL PROTECTED]> wrote:  
> > 
>
> >
> >   
> > Hi all,I would like to substitute the text icons * and X for required and   
> >   
>
> >   
> >   
> > error markers on fields  
> > 
> > with my  
> >   
> > own markup (an image and/or other text).  Is there any way to do
> >   
>
> >  
> >   
> > this?  If so, how?  
> >

Re: [Trinidad] Removing Text Icons (* and X)

2007-08-24 Thread Jeanne Waldman

I tried this in the purple skin:
.AFErrorIcon:alias { content:url(/skins/purple/images/btns.gif); }

and ran the purple skin and the icon.jspx component demo and set 
name="error" and I saw my image.


It should work, so maybe there is a typo?

- Jeanne

DLC wrote:

I've tried it with both one and two colons.  Neither seems to work.

--Dave

--- Jeanne Waldman <[EMAIL PROTECTED]> wrote:


-
  There's a typo here in your email, and not sure if it is the same inyour code:

:alias (one colon, not two)

- Jeanne

DLC wrote:  
Well, maybe I should be more specific.  This is what I've tried:.AFErrorIcon::alias { content:

url(/images/icon_alert.gif); }.AFErrorIcon::alias { content: 'W'; }.AFErrorIcon 
{ content:
url(/images/icon_alert.gif); }.AFErrorIcon { content: 'W'; }None of these have 
any effect on the
rendering of the error icon (e.g., what's rendered next to arequired input 
field that is blank
when attempting to submit).  That is rendered like this:XI would prefer it to render something like 
this:Does that help?--Dave--- Scott O'Bryan <[EMAIL 
PROTECTED]> wrote:
 
  
Dave, it needs to be an "icon".  Can't be an X..DLC wrote:
  
Thanks for your input.  Unfortunately, I can't seem to get this to work right.  Maybe I'm

justconfused.I'm trying to replace the default AFErrorIcon (which is an 'X') 
with my own.  Could
someone show me an example that they haveworking?Thanks,--Dave--- Scott O'Bryan
<[EMAIL PROTECTED]> wrote:
  
You can do that in the css .  The skinning framework parses the css and any icons which are

specified in the skinning file will override the default values.  Use the 
"content:" as specified
in the below example to specify which image to use.ScottPerkins, Nate-P63196 wrote:
  
Would this also work for the af|chooseDate::launch-icon...the defaultfor this is a green calendar,

but I would like to change it to a bluecalendar.Can I do that with css or do I 
need to change the
code? Nate [EMAIL PROTECTED]  
  
This email message is for the sole use of the intended recipient(s) and

may contain GDC4S  
  
confidential or privileged information. Any unauthorized review, use,

disclosure or distribution  
  
is prohibited. If you are not an intended recipient, please contact

the sender by reply email and  
  
destroy all copies of the original message.

-Original Message-From: Andrew Robinson [mailto:[EMAIL PROTECTED] Sent:

Thursday, August 23, 2007 11:22 AMTo: MyFaces DiscussionSubject: Re: [Trinidad] 
Removing Text
Icons (* and X)You can find the code in BaseDesktopSkin.java that registers the 
defaulticons.In
your skin, you should be able to do things like:.AFDetailDisclosedIcon::alias { 
 content:
"V";}or.AFDetailDisclosedIcon::alias {  content: 
url(/skin/myskin/icons/myIcon.gif);}-AndrewOn
8/23/07, DLC <[EMAIL PROTECTED]> wrote:  
  
Yes.  Sorry, I forgot to add [Trinidad] to the subject.--Dave--- Andrew Robinson
<[EMAIL PROTECTED]> wrote:
  
Is this in relation to Trinidad?On 8/22/07, DLC <[EMAIL PROTECTED]> wrote:  
   
  
Hi all,I would like to substitute the text icons * and X for required and 
  
  
error markers on fields  

with my  
  
own markup (an image and/or other text).  Is there any way to do  
 
  
this?  If so, how?  

Thanks,--Dave
  
  
   

Shape Yahoo! in your own image.  Join our Network Research Panel  
 
  
today!  

http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7  
  

  


  
   
  
Shape Yahoo! in your own image.  Join our Network Research Pan

Link to a new site

2007-08-24 Thread Wolfgang

Hi to all on this list,

I have just started to learn jsf and I managed to build a  menu with the 
tree2 component of Apache MyFaces.


The menu files are:
   menuEnVision.java (the code can be seen here: 
http://pastebin.parentnode.org/22482)

   menuEnVision.xhtml (http://pastebin.parentnode.org/22483)

What I didn't managed is, if one clicks on a menu point, the content of 
a new page should appear.

For example: statistics.xhtml or proteins.xhtml

If one clicks on a menu point, I have managed to identify which one it 
was, but how to use this
for opening the content of a  new site (e.g. statisitcs.xhtml)  I don't 
know .


Can anyone give me a short example how to do this?

Thanks for  your help!

Cheers Wolfgang




Re: [Trinidad] Upgrading to 1.0.2

2007-08-24 Thread Simon Lessard
+1, good idea. I would tend to add it on both.

On 8/23/07, Adam Winer <[EMAIL PROTECTED]> wrote:
>
> I'm getting the feeling that we really need to add a flag
> to at least trh:html or both trh:html and tr:document
> that supports forcing quirks mode.
>
> Thoughts?
>
> -- Adam
>
>
> On 8/23/07, Andrew Robinson <[EMAIL PROTECTED]> wrote:
> > You can use IE6 in quirks mode and firefox in standards mode by
> > subclassing the tr:document renderer.
> >
> > If a comment appears before the doc type, IE will not go into standards
> mode.
> >
> > Here is some code if you want to do it this way to force only IE into
> > quirks mode while using tr:document:
> >
> > public class DocumentRenderer
> >   extends
> >
> org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.DocumentRenderer
> > {
> >
> >   /**
> >*
> >*/
> >   public DocumentRenderer()
> >   {}
> >
> >   /**
> >* @param type
> >*/
> >   public DocumentRenderer(Type type)
> >   {
> > super(type);
> >   }
> >
> >   /**
> >* @see
> org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.DocumentRenderer#encodeAll
> (javax.faces.context.FacesContext,
> > org.apache.myfaces.trinidad.context.RenderingContext,
> > javax.faces.component.UIComponent,
> > org.apache.myfaces.trinidad.bean.FacesBean)
> >*/
> >   @Override
> >   protected void encodeAll(FacesContext context, RenderingContext arc,
> > UIComponent component, FacesBean bean) throws IOException
> >   {
> > if (Agent.AGENT_IE.equals(arc.getAgent().getAgentName()))
> > {
> >   context.getResponseWriter().write("");
> > }
> > super.encodeAll(context, arc, component, bean);
> >   }
> > }
> >
> >
> > On 8/23/07, Perkins, Nate-P63196 <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > > I put a lot of time into this problem, albeit a while ago, but I could
> not
> > > find a way to satisfy my requirements for IE6 in standard mode, I
> would love
> > > to be able to, but I have not found a way.  I'll post the general
> structure
> > > and the css and perhaps you can help?
> > >
> > > The basic structure is this:
> > >
> > > 
> > > Some necessary banner text
> > > 
> > > 
> > > Whatever the particular page requires
> > > 
> > > 
> > > Again, some necessary banner text
> > > 
> > >
> > > The requirement is that the top_bar and the bottom_bar are always
> visible
> > > and in the same position (at the top and the bottom, respectively :) )
> but
> > > not covering the main_content while main_content can scroll as
> necessary.
> > >
> > > Here's the css that I used to accomplish this, this works properly in
> > > Firefox regardless of the doc-type, but again, in IE6 it only works in
> > > quirks mode.
> > >
> > > body {
> > > border: 0pt none;
> > > margin: 0;
> > > padding 0;
> > >
> > > height: 100%;
> > > max-height: 100%;
> > >
> > > width: 100%;
> > > max-width: 100%;
> > > overflow: hidden;
> > > }
> > >
> > > * html body {
> > > padding: 5px 0pt 55px;
> > > }
> > >
> > > #main_content {
> > > bottom: 30px;
> > > left: 0px;
> > > overflow: auto;
> > > position: fixed;
> > > right: 0;
> > > top: 25px;
> > > }
> > >
> > > * html #main_content {
> > > height: 100%;
> > > position: relative;
> > > width: 100%;
> > > }
> > >
> > > #top_bar {
> > > height: 25px;
> > >
> > > position: absolute;left: 0;
> > > top: 0;
> > > width: 100%;
> > > }
> > >
> > > #bottom_bar {
> > >
> > > height: 25px;
> > >
> > > position: absolute;left: 0;
> > > bottom: 0;
> > > width: 100%;
> > > }
> > >
> > >
> > > Nate Perkins
> > > 480-441-3667
> > > [EMAIL PROTECTED]
> > >
> > > This email message is for the sole use of the intended recipient(s)
> and may
> > > contain GDC4S
> > >  confidential or privileged information. Any unauthorized review, use,
> > > disclosure or distribution
> > >  is prohibited. If you are not an intended recipient, please contact
> the
> > > sender by reply email and
> > >  destroy all copies of the original message.
> > >
> > >
> > >  
> > >  From: Simon Lessard [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, August 23, 2007 8:21 AM
> > >
> > > To: MyFaces Discussion
> > > Subject: Re: [Trinidad] Upgrading to 1.0.2
> > >
> > >
> > > Hello Nate,
> > >
> > > So what you're saying is that your application will only ever work in
> quirk
> > > mode? There's always a solution in standard mode as well, sometimes a
> bit
> > > more complicated though.
> > >
> > >
> > > Regards,
> > >
> > > ~ Simon
> > >
> > >
> > > On 8/23/07, Perkins, Nate-P63196 <[EMAIL PROTECTED]> wrote:
> > > > I commented out the jsp:output and that fixed the problem.
> > > >
> > > > Unfortunately I can not live with that solution as it is mandatory
> for
> > > > my project's pages.  We have a requirement for a fixed bar on top
> and on
> > > > bottom that do not scroll (while the rest of page obviously does)
> and
> > > > are always visible and the only solution I found required that
> doc-type.
> > > >
> > > >
> > > >
> > > > Nate Perkins
> > > > 480-441

Re: How to incorporate permission check in jsf pages

2007-08-24 Thread Thomas Fischer
Hi Catagay,

Thanks a lot for your answer.

Cagatay Civici wrote:
> Security is more kinda metadata and handling it with a ui tag would be
hard to
> maintain.

Hm, but it maps neatly to the requirement "the user can see this page for
that item if he has the relevant permission on the item". The alternatives
you gave are all centralized approaches, meaning that you have one big
configuration file for all permissions, instead of having "decentralized"
checks in the page. It is probably a matter of personal preference and
project organisation, but I'm a friend of decentralized approaches.

> You can still use container managed security with security
> constraints,

This is using the "user has roles" approach, right ? If yes, this is not
enough in my case as it does not incorporate concepts like "this user is
the owner of that item".

> another alternative would be to use a phaselistener or a filter.

The problem with filters is that one would typically use the request url
for filtering. However, the request url does not correspond to the view id
of the protected page. E.g. I have page 1 and if submitted, I want to
display page 2, and page 2 is protected, but if the submit is processed the
url corresponds to the view id of page 1, not to page 2. This is very
difficult to sort out using filters.

Translating this to using phase listeners, this would mean that I would
have to use the "Render response" phase in order to get the correct view id
for the page being rendered from facesContext.getViewRoot.getViewId(),
right ?

> The best solution would be acegi in case you have complex security
constraints.

Thanks for the hint, I'll look into this, but this will take some time.
However, I suspect it uses the "centralized" approach :-), and I'm not sure
if one does not run into the "request url not equals to view id" problem as
in filters.

>
> You can also check out the MyFaces SecurityContext that provides builtin
> security features on EL level.

Thanks, I was not aware of that. However, if I understand it correctly, it
can be used only to switch rendering for some components on and off, not
for permissions on whole pages ?

Regards,

   Thomas

> On 8/24/07, Thomas Fischer <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> We have a jsp tag which checks whether the user has the permission to
> access a given page. The tag retrieves the user and the item displayed on

> the page from the session, and checks the permissions of the user on the
> item. If the user is not permitted to access the item, the tag adds a
faces
> message to the context and redirects to the main page of the application.

> This works all fine.
>
> Now this page permisson check tag  would be the only tag in the
application
> so far which is NOT a jsf component. Does it make sense to convert this
> into a jsf component ? (Note it has no counterpart in the rendered html.)

>
> If yes, how can I hook the permission check logic into the jsf lifecycle
?
> If I implement the permission check as a standard JSF component, my
> understanding was that the logical place to do the check  is the "invoke
> application" phase ? But I did not find a place where a component can
hook
> itself into the "invoke application phase". Is there any ? Or should I do
> this in the validation phase and hook into the processValidators() method

> of UIComponent instead ?
>
> Alternatively, as one can regard permission checks as a sort of
validation,
> I tried to implement the permission check as a validator. The logical
point
> to put the validator tag is directly inside the f:view tag, as it is a
> permission for the entire page. However, this does not work as the View
> Root is no EditableValueHolder. Of course, one could  put the validator
> inside any EditableValueHolder on the page, but I'd consider this as a
bad
> hack (e.g. what if the EditableValueHolder is sometimes rendered and
> sometimes not ?)
>
> Any hints towards the "jsf way" of doing page permission checks are
> appreciated.
>
>   Regards,
>
>  Thomas



Re: t:inputCalendar and StreamingAddResource

2007-08-24 Thread Wolf Benz
I'm using MF 1.2.0 and Facelets and Tomahawk 1.1.6 nd t:inputCalendar
doesn't even renders!
I posted a question on this yesterday but I've gotten no feedback yet
so I guess either no one tested this, or no one uses it already with
this combination :-)

-Wolf

On 8/7/07, Nicu Mercioiu <[EMAIL PROTECTED]> wrote:
> I'm building an application using myfaces  orchestra. First I've used
> DefaultAddResource but there seems to be a conflict with orchestra so
> I've moved to StreamingAddResource but does not confer good results
> for t:inputCalendar.
>
> Does anybody have a clue about this?
>
> On 8/7/07, Nicu Mercioiu <[EMAIL PROTECTED]> wrote:
> > Did someone successfully used t:inputCalendar (renderAsPopup="true")
> > with StreamingAddResource? In my case there is a big  space on the
> > page after closing the popup.
> >
>


Re: How to incorporate permission check in jsf pages

2007-08-24 Thread Cagatay Civici
Hi,

Security is more kinda metadata and handling it with a ui tag would be hard
to maintain. You can still use container managed security with security
constraints, another alternative would be to use a phaselistener or a
filter. The best solution would be acegi in case you have complex security
constraints.

You can also check out the MyFaces SecurityContext that provides builtin
security features on EL level.

Regards,

Cagatay


On 8/24/07, Thomas Fischer <[EMAIL PROTECTED]> wrote:
>
>
> Hi all,
>
> We have a jsp tag which checks whether the user has the permission to
> access a given page. The tag retrieves the user and the item displayed on
> the page from the session, and checks the permissions of the user on the
> item. If the user is not permitted to access the item, the tag adds a
> faces
> message to the context and redirects to the main page of the application.
> This works all fine.
>
> Now this page permisson check tag  would be the only tag in the
> application
> so far which is NOT a jsf component. Does it make sense to convert this
> into a jsf component ? (Note it has no counterpart in the rendered html.)
>
> If yes, how can I hook the permission check logic into the jsf lifecycle ?
> If I implement the permission check as a standard JSF component, my
> understanding was that the logical place to do the check  is the "invoke
> application" phase ? But I did not find a place where a component can hook
> itself into the "invoke application phase". Is there any ? Or should I do
> this in the validation phase and hook into the processValidators() method
> of UIComponent instead ?
>
> Alternatively, as one can regard permission checks as a sort of
> validation,
> I tried to implement the permission check as a validator. The logical
> point
> to put the validator tag is directly inside the f:view tag, as it is a
> permission for the entire page. However, this does not work as the View
> Root is no EditableValueHolder. Of course, one could  put the validator
> inside any EditableValueHolder on the page, but I'd consider this as a bad
> hack (e.g. what if the EditableValueHolder is sometimes rendered and
> sometimes not ?)
>
> Any hints towards the "jsf way" of doing page permission checks are
> appreciated.
>
>   Regards,
>
>  Thomas
>
>


How to incorporate permission check in jsf pages

2007-08-24 Thread Thomas Fischer

Hi all,

We have a jsp tag which checks whether the user has the permission to
access a given page. The tag retrieves the user and the item displayed on
the page from the session, and checks the permissions of the user on the
item. If the user is not permitted to access the item, the tag adds a faces
message to the context and redirects to the main page of the application.
This works all fine.

Now this page permisson check tag  would be the only tag in the application
so far which is NOT a jsf component. Does it make sense to convert this
into a jsf component ? (Note it has no counterpart in the rendered html.)

If yes, how can I hook the permission check logic into the jsf lifecycle ?
If I implement the permission check as a standard JSF component, my
understanding was that the logical place to do the check  is the "invoke
application" phase ? But I did not find a place where a component can hook
itself into the "invoke application phase". Is there any ? Or should I do
this in the validation phase and hook into the processValidators() method
of UIComponent instead ?

Alternatively, as one can regard permission checks as a sort of validation,
I tried to implement the permission check as a validator. The logical point
to put the validator tag is directly inside the f:view tag, as it is a
permission for the entire page. However, this does not work as the View
Root is no EditableValueHolder. Of course, one could  put the validator
inside any EditableValueHolder on the page, but I'd consider this as a bad
hack (e.g. what if the EditableValueHolder is sometimes rendered and
sometimes not ?)

Any hints towards the "jsf way" of doing page permission checks are
appreciated.

   Regards,

  Thomas



Myfaces 1.1.5 and JSTL 1.1.0

2007-08-24 Thread Francisco Passos
Good day!

I know JSTL is more fully supported in the JSF 1.2 branch of Myfaces.
However, I'd like to know specifically what does not or might not work
properly when using the JSTL library on myfaces 1.1.5.

Thank you,
Francisco Passos


Re: [Trinidad] XMLMenuModel bug

2007-08-24 Thread Luka Surija
Actually nothing happens, I've found that Firebug is displaying this 
error message:


validatorArray has no properties:

_multiValidate(form#j_id1 index.xhtml, "j_id5:0:j_id6", ["j_id28", 0, 
undefined, 17 more...])Common1_0_3.js (line 5248)
_validateInline(form#j_id1 index.xhtml, "j_id5:0:j_id6", ["j_id28", 0, 
undefined, 17 more...])Common1_0_3.js (line 4589)
_j_id1Validator(form#j_id1 index.xhtml, "j_id5:0:j_id6")index.xhtml 
(line 245)
_validateForm(form#j_id1 index.xhtml, "j_id5:0:j_id6")Common1_0_3.js 
(line 4508)
submitForm(form#j_id1 index.xhtml, 1, Object source=j_id5:0:j_id6, 
undefined)Common1_0_3.js (line 4765)

onclick(click clientX=0, clientY=0)index.xhtml (line 1)
for(var j=0;j
If found pretty dummy bug in XMLMenuModel.

If I call an action method trough XMLMenuModel then the method is 
executed, but no navigation is executed.



WorkingTaskAdmin:

public String addNewWorkingTask(){
   sessionBean.addNewWorkingTask();
   return "service:workingTaskWizard"; -- invoking in 
tr:commandMenuItem  act as where "return null;"

   }

menu-model.xml:

action="#{WorkingTaskAdmin.addNewWorkingTask}" 
focusViewId="/service/workingTaskWizard.xhtml" />



but if i press this button then everything works as expected.
action="#{WorkingTaskAdmin.addNewWorkingTask}" />



I'm using trinidad 1.0.3-core trunk.





[Trinidad] XMLMenuModel bug

2007-08-24 Thread Luka Surija

If found pretty dummy bug in XMLMenuModel.

If I call an action method trough XMLMenuModel then the method is 
executed, but no navigation is executed.



WorkingTaskAdmin:

public String addNewWorkingTask(){
   sessionBean.addNewWorkingTask();
   return "service:workingTaskWizard"; -- invoking in 
tr:commandMenuItem  act as where "return null;"

   }

menu-model.xml:

action="#{WorkingTaskAdmin.addNewWorkingTask}" 
focusViewId="/service/workingTaskWizard.xhtml" />



but if i press this button then everything works as expected.
action="#{WorkingTaskAdmin.addNewWorkingTask}" />



I'm using trinidad 1.0.3-core trunk.


RE: [Trinidad] message.properties bundle for selectOneChoice,

2007-08-24 Thread sandeep gururaj
Hello Darren,

 

Good question! I see 2 problems here.

 

Firstly, tr:selectItem represents a single item. I am not sure how to
use it for a list of items. May be you can try with f:selectItems, whose
value is a list of SelectItems.

 

Secondly, to fetch the value for a given key from properties file,
ResourceBundle.getString(key) is used. This returns only String objects.
So, there's no way one can get an array or list. In your example, you
get "London,Dublin,Glasgow" as a single item.

 

To solve your problem, you need a list in your bean and a solution to
the second problem. You can try any of the methods suggested on the
related topic in Sun Developer Network
(http://forum.java.sun.com/thread.jspa?threadID=666290&messageID=3974001
).

 

Hope this helps!

~Sandeep

 



From: Darren McEntee [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 23, 2007 9:16 PM
To: MyFaces Discussion
Subject: [Trinidad] message.properties bundle for selectOneChoice,

 

Hi guys, 

 

Quick question...

I thought I seen this somewhere but can't seem to locate it now...

 

I'm interested in populating the drop down values of a
tr:selectOneChoice component with values in a message.properties bundle.

This works great for single items like labels and naming convention
values.

 

But can a message.properties file contain a list, like a key-value pair
with multiple values:

 

i.e.

 

SelectCity=London,Dublin,Glasgow

 







 

Just wondering if this is possible...

Thanks,

Darren.


  
P Please consider the environment before printing this email 

_ 
 
1. The information contained in this E-mail, including any files
transmitted with it, is confidential and may be legally privileged. This
E-mail is intended only for the personal attention of the stated
addressee(s). Any access to this E-mail, including any files transmitted
with it, by any other person is unauthorised. If you are not an
addressee, you must not disclose, copy, circulate or in any other way
use or rely on the information contained in this E-mail or any files
transmitted with it. Such unauthorised use may be unlawful. If you have
received this E-mail in error, please inform the sender immediately and
delete it and all copies from your system. You may not forward this
E-mail without the permission of the sender.
 
2. The views expressed in this E-mail are those of the author, and do
not necessarily represent the views of AMT-SYBEX. Internet
communications are not secure and AMT-SYBEX cannot, therefore, accept
legal responsibility for the contents of this message nor for any damage
caused by viruses. 
  

AMT-SYBEX Limited is a UK company, registration number GB03036807 at
address The Spirella Building, Bridge Road, Letchworth, SG6 4ET.  

AMT-SYBEX (NI) Limited is a UK company, registration number NI024104 at
address Edgewater Office Park, Edgewater Rd, Belfast, BT3 9JQ.
For more information on the AMT-SYBEX Group visit
http://www.amt-sybex.com  
_ 



RE: [Trinidad] message.properties bundle for selectOneChoice,

2007-08-24 Thread Darren McEntee
Anyone have any ideas on this?

 



From: Darren McEntee [mailto:[EMAIL PROTECTED] 
Sent: 23 August 2007 16:46
To: MyFaces Discussion
Subject: [Trinidad] message.properties bundle for selectOneChoice,

 

** This Message Originated From The Internet Please Be Aware Of
Suspicious Attachments And Content ** 

  

Hi guys, 

 

Quick question...

I thought I seen this somewhere but can't seem to locate it now...

 

I'm interested in populating the drop down values of a
tr:selectOneChoice component with values in a message.properties bundle.

This works great for single items like labels and naming convention
values.

 

But can a message.properties file contain a list, like a key-value pair
with multiple values:

 

i.e.

 

SelectCity=London,Dublin,Glasgow

 







 

Just wondering if this is possible...

Thanks,

Darren.


  
P Please consider the environment before printing this email 

_ 
 
1. The information contained in this E-mail, including any files
transmitted with it, is confidential and may be legally privileged. This
E-mail is intended only for the personal attention of the stated
addressee(s). Any access to this E-mail, including any files transmitted
with it, by any other person is unauthorised. If you are not an
addressee, you must not disclose, copy, circulate or in any other way
use or rely on the information contained in this E-mail or any files
transmitted with it. Such unauthorised use may be unlawful. If you have
received this E-mail in error, please inform the sender immediately and
delete it and all copies from your system. You may not forward this
E-mail without the permission of the sender.
 
2. The views expressed in this E-mail are those of the author, and do
not necessarily represent the views of AMT-SYBEX. Internet
communications are not secure and AMT-SYBEX cannot, therefore, accept
legal responsibility for the contents of this message nor for any damage
caused by viruses. 
  

AMT-SYBEX Limited is a UK company, registration number GB03036807 at
address The Spirella Building, Bridge Road, Letchworth, SG6 4ET.  

AMT-SYBEX (NI) Limited is a UK company, registration number NI024104 at
address Edgewater Office Park, Edgewater Rd, Belfast, BT3 9JQ.
For more information on the AMT-SYBEX Group visit
http://www.amt-sybex.com  
_ 

 

 

P Please consider the environment before printing this email