Has anyone used inputHTML?

2007-08-05 Thread SOSELLA
Has anyone successfully used t:inputHTML?  It doesn't seem to work for
me.  Any suggestions for another HTML editor?


Modal popup dialogs for form submission in JSF

2007-06-20 Thread SOSELLA
Could anyone recommend the best way to have modal popup dialogs for form
submission in JSF?  I need to popup a dialog that has a form that the
user can fill out and submit and then return to the page from which the
popup dialog was initiated.  I need a modal dialog to that page.


Did the tomahawk sandbox get included completely in tomahawk JAR?

2007-06-13 Thread SOSELLA
Sorry if this sounds like a stupid question; however, did the
tomahawk-sandbox get completely included into the tomahawk 1.1.6 JAR? 
If not, which tomahawk sandbox JAR can be used with the 1.1.6 JAR?


Re: Navigation to and from an HTTPS URL - One Last Question

2007-05-04 Thread SOSELLA
Andrew,

In your response, you wrote "build the full URL including 'https'". 
However, when you get the viewId in handleNavigation, it has the actual
file name, e.g., "page.xhtml" (I am using facelets).  However, I think
(maybe I am wrong) that an actual URL has to be of the form "page.jsf"
(if using ".jsf" as the filter url-pattern).  Would it be safe to simply
replace ".xhtml" with ".jsf" to form the URL (along with "https://";)? 
Or is there a way to change the protocol to HTTPS and then just use the
same viewId (without the "secure:" prefix)?

Thanks!

- Original Message -
From: Andrew Robinson <[EMAIL PROTECTED]>
Date: Thursday, May 3, 2007 1:41 pm
Subject: Re: Navigation to and from an HTTPS URL
To: MyFaces Discussion 

> > > For the custom navigation handler, I don't have an example, but 
> you> > could just setup some kind of pattern that you could parse 
> via regex.
> > > Something like
> > >
> > > secure:/myview.xhtml
> > >
> > > Then in the navigation handler, see:
> > > private final static String SECURE = "secure:";
> > > ...
> > > if (viewId.startsWith(SECURE))
> > > {
> > >  viewId = viewId.substring(SECURE.length());
> > >  // see if the HttpServletRequest.isSecure() returns false
> > >  // if so then:
> > >  // get the faces external context
> > >  // build the full URL including "https"
> > >  // call external context.redirect
> > >  // call context.responseComplete();
> > > }
> > > else ...
> > >



Re: Navigation to and from an HTTPS URL

2007-05-03 Thread SOSELLA
Andrew & Bill,

So is it common form to stay in HTTPS once the user estasblishes a
secure connection and authentication?  Because if this is the case, then
I don't have to really do anything special for navigation handling.  Are
there any downsides to continuing to use HTTPS?  I am not sure I could
gaurantee that the user (benign or malicious) wouldn't start from my
HTTPS login URL rather than from the HTTP main page URL.

Thanks again for your valuable input.



- Original Message -
From: Andrew Robinson <[EMAIL PROTECTED]>
Date: Thursday, May 3, 2007 10:22 am
Subject: Re: Navigation to and from an HTTPS URL
To: MyFaces Discussion 

> For the custom navigation handler, I don't have an example, but you
> could just setup some kind of pattern that you could parse via regex.
> Something like
> 
> secure:/myview.xhtml
> 
> Then in the navigation handler, see:
> private final static String SECURE = "secure:";
> ...
> if (viewId.startsWith(SECURE))
> {
>  viewId = viewId.substring(SECURE.length());
>  // see if the HttpServletRequest.isSecure() returns false
>  // if so then:
>  // get the faces external context
>  // build the full URL including "https"
>  // call external context.redirect
>  // call context.responseComplete();
> }
> else ...
> 
> You have to use a redirect one way or another, so it being in a
> navigation handler just makes it available to all action responses.
> 
> Also, make sure you remember once you redirect the user, they may lose
> their session, and they definitely will if you redirect from HTTPS to
> HTTP. Servlets use a in-memory cookie to store the session ID. Since
> it is a cookie, it falls under the W3C specification for cookie
> handling. So for example, if the cookie is marked as secure, it cannot
> be seen from HTTP.
> 
> Make sure you are not planning on authenticating them under HTTPS, and
> then redirecting them to HTTP and trying to retain an insecure session
> ID. If so, impersonation attacks would be a piece of cake against your
> code.
> 
> 
> On 5/3/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > Andrew,
> >
> > Thanks for the tips.  I think that method (1) can work for me in 
> some> situations, but not in general.  Would you happen to know or 
> have any
> > examples for the method (2) [custom navigation handler]?  I 
> appreciate> your help *very* much!
> >
> >
> > - Original Message -
> > From: Andrew Robinson <[EMAIL PROTECTED]>
> > Date: Wednesday, May 2, 2007 3:50 pm
> > Subject: Re: Navigation to and from an HTTPS URL
> > To: MyFaces Discussion 
> >
> > > Two methods:
> > >
> > > 1) In your action or actionListener use the external context to
> > > send a
> > > redirect or
> > > 2) Use a custom navigation handler that builds a URL then changes
> > > the protocol
> > >
> > > On 5/2/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > > > Does anyone have any tips how you can implement navigating to 
> and> > from> an HTTPS URL from a commandLink or commandButton?
> > > >
> > >
> >
> 


Re: Navigation to and from an HTTPS URL

2007-05-03 Thread SOSELLA
Andrew,

Thanks for the tips.  I think that method (1) can work for me in some
situations, but not in general.  Would you happen to know or have any
examples for the method (2) [custom navigation handler]?  I appreciate
your help *very* much!


- Original Message -
From: Andrew Robinson <[EMAIL PROTECTED]>
Date: Wednesday, May 2, 2007 3:50 pm
Subject: Re: Navigation to and from an HTTPS URL
To: MyFaces Discussion 

> Two methods:
> 
> 1) In your action or actionListener use the external context to 
> send a
> redirect or
> 2) Use a custom navigation handler that builds a URL then changes 
> the protocol
> 
> On 5/2/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > Does anyone have any tips how you can implement navigating to and 
> from> an HTTPS URL from a commandLink or commandButton?
> >
> 


Navigation to and from an HTTPS URL

2007-05-02 Thread SOSELLA
Does anyone have any tips how you can implement navigating to and from
an HTTPS URL from a commandLink or commandButton?


Re: forceId warning when using facelets

2007-04-13 Thread SOSELLA
I tried looking into this approach of having a binding component in the
backing bean, but that seems *highly* onerous.  I would need a binding
component for nearly every input control.  I prefer using the forceId
approach.


- Original Message -
From: Mike Kienenberger <[EMAIL PROTECTED]>
Date: Friday, April 13, 2007 9:09 am
Subject: Re: forceId warning when using facelets
To: MyFaces Discussion <[EMAIL PROTECTED]>

> For addMessage, you need to provide
> 
> component.getClientId(FacesContext.getCurrentInstance())
> 
> You can either explicitly bind the component to your backing bean so
> you have a reference to it, or you can use a findComponent method.
> 
> 
> On 4/13/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > There are two reasons why I am using forceId, but both of them are
> > probably because I am not doing something correctly.
> >
> > 1) When I use an addMessage(id, ...) I have to specify the id of the
> > control for the message is intended.  It seems (maybe I am wrong) 
> that> if I don't use forceId, the id used in JSF isn't the same as 
> that> referred to in the addMessage().
> >
> > 2) I am using ajax4jsf and I was getting lots of duplicate id's.  
> When I
> > used forceId, those errors disappeared.
> >
> > Maybe there are better ways to avoid these issues, but forceId 
> worked> for me.
> >
> 


Re: forceId warning when using facelets

2007-04-13 Thread SOSELLA
There are two reasons why I am using forceId, but both of them are
probably because I am not doing something correctly.

1) When I use an addMessage(id, ...) I have to specify the id of the
control for the message is intended.  It seems (maybe I am wrong) that
if I don't use forceId, the id used in JSF isn't the same as that
referred to in the addMessage().

2) I am using ajax4jsf and I was getting lots of duplicate id's.  When I
used forceId, those errors disappeared.

Maybe there are better ways to avoid these issues, but forceId worked
for me.


forceId warning when using facelets

2007-04-12 Thread SOSELLA
Don't know if this has been discussed here before...

I am getting warnings that the 'forceId' attribute is not on various
types, e.g., org.apache.myfaces.component.html.ext.HtmlInputText.  I
recently ported to facelets and I don't remember seeing this warning
when I was just using myfaces alone.

I saw a work-around, but I am wondering whether I have to do some
additional configuration.


position : beating this dead horse again

2007-04-11 Thread SOSELLA
I am using  and I put a  around it to try to anchor the popup on the
image icon.  This works fairly well, but I noticed that if I scroll down
on the page and then click on the image icon to popup the dialog, the
dialog is offset by the amount that I scrolled.  Anyone know the right
way to anchor the popup to the icon?


Additional: problem (using facelets)

2007-04-02 Thread SOSELLA
Some more info... seems like the mouseListener method is not being
called.  I am pretty sure that it used to be called prior to me porting
to facelets.

I downloaded the "tomahawk.taglib.xml" file that I found on the net, but
I added the "schedule" tag myself and listed
"org.apache.myfaces.Schedule" as the .  Does anyone have
an official "tomahawk.taglib.xml" file?  Any ideas about what might be
going on?


problem (using facelets)

2007-04-02 Thread SOSELLA
I have been porting my code to facelets.  I am using  and
all seemed to work and render properly, but when now I go to click on
the schedule, the event type is always SCHEDULE_NOTHING_CLICKED.  I did
not change any attributes or attribute values for the  tag.
 Has anyone else seen this issue?  The schedule handler action is being
called, but the event type is always SCHEDULE_NOTHING_CLICKED.


StreamingAddResource Exception with Facelets

2007-03-28 Thread SOSELLA
I am trying to incorporate the performance improvements using:


   org.apache.myfaces.ADD_RESOURCE_CLASS
  
org.apache.myfaces.component.html.util.StreamingAddResource


with   when using facelets.

I am getting an exception when the first page is accessed:

Unknown error while serving resource: null/header.css, message : For
input string: "null"

The error seems to go away after accessing the front page the first
time; but I am not sure if it is an error that happens per session.

Does anyone have any ideas about this?  Should I not use that
performance tip if using facelets?


ajax4jsf 1.1 RC2 - session serialization write error

2007-03-26 Thread SOSELLA
I just downloaded and imported version 1.1 rc2 of AJAX4JSF (from a
version I downloaded sometime in Dec. 2006).  I am now getting a
'Session Serialization Error' when stopping my Tomcat server.  I know
you can turn off Session Serialization, but does anyone anything in
particular that might be causing this exception?


facelets and ajax4jsf problem: Client-id : theId is duplicated in the faces tree.

2007-03-24 Thread SOSELLA
I am trying to use facelets with ajax4jsf and immediately came across a
problem where the following exception:

"Client-id : theId is duplicated in the faces tree. "

is raised.  This worked fine when not using facelets but fails when
using facelets.  I can post more code, but was wondering if there is
some basic thing that I need to do to integrate ajax4jsf with facelets.



Re: SIMPLE question - How can I get   to work

2007-03-21 Thread SOSELLA
I think that with facelets you don't need to use h:outputText... just
put   by itself.


- Original Message -
From: Charbel Abdul-Massih <[EMAIL PROTECTED]>
Date: Wednesday, March 21, 2007 7:56 am
Subject: SIMPLE question - How can I get   to work
To: MyFaces Discussion 

> I am using JSF with facelets...
> 
> I just need to output a space character " " in my page...
> 
> 
> 
> For some reason, it is not working for me...
> 
> 
> 
> I tried 
> 
> 
> 
> That's not working...
> 
> 
> 
> Can you please help!!
> 
> 


Facelets and JSP...how to port JSP code.

2007-03-21 Thread SOSELLA
I have been considering moving to Facelets.  I have studied it and like
what I see.  One problem I see is how to port my JSP code into Facelets.
 By this I mean, in some of my pages, I have JSP code


<%
   if (!foo.isLoaded())
   {
  response.sendRedirect("login.jsf");
   }
%>


Does anyone know how you might port this?  I am open to design changes
as well.

Thanks!


Re: FacesContext.addMessage in an action method

2007-03-18 Thread SOSELLA
Simon,

Yes.  I am using  in my navigation rules.  What is the
behavior of JSF if you return null?  Does it stay on that page?

Thanks for the tip.  This might be the explanation I have been seeking.


- Original Message -
From: Simon Kitching <[EMAIL PROTECTED]>
Date: Sunday, March 18, 2007 3:48 pm
Subject: Re: FacesContext.addMessage in an action method
To: MyFaces Discussion 

> 
> Adding error messages from action methods works fine for me.
> 
> And they certainly should show up, even if you don't provide a 
> component 
> or client-id (these are optional parameters).
> 
> Are you perhaps returning a navigation string from your action 
> method 
> and then using  in your navigation rules? This would 
> definitely discard any registered messages...
> 
> I suggest returning NULL from your action method if you are 
> reporting 
> any errors.
> 
> Regards,
> 
> Simon
> 


Ajax4jsf w.r.t. FacesContext.addMessage in an action method

2007-03-17 Thread SOSELLA
Just thought of something...I am using Ajax4jsf.  Could the Ajax4jsf
filter be messing things up?


FacesContext.addMessage in an action method

2007-03-17 Thread SOSELLA
I have seemingly tried everything.  I put forceId on the 
(which sets the id properly); I tried a validator and calling
addMessage() from within the validator method, which although it is
bulky it did work and the error message appeared; page-level validation
works (an error message appears if I leave the field empty).  However,
it does not work if I call FacesContext.addMessage() from within the
action method.  The error message does not show up.  Is there something
else I have to do???  Like a PhaseListener or something?  Some other
setting somewhere?  I am absolutely sure I am getting the correct id
because I even used a binding property.  I could really use some help. 
This shouldn't be that difficult.  Thanks!


Can you addMessage() from an Action method?

2007-03-16 Thread SOSELLA
>From all examples, it appears that you should be able to call
addMessage() from within an action method, but when I try this, the
message is not displayed.  Contrarily, I found this discussion where it
says that it isn't possible:

http://jsf-faq.com/faqs/messages.html

and that you have to use a validator.  I tried using a validator and it
did work (the message gets displayed); however, I think that this
approach is rather limiting.  There are errors that are dependent on
more than one input.

I am out of ideas.  Can you call addMessage() from within an action
method and have the error messages (via ) show up?

Thanks.


and not working

2007-03-16 Thread SOSELLA
I tried the suggestion of using forceId to specify the id of the
component for which I need to generate a message, and I also created a
property binding to get the client id.  I did the latter mostly to check
that forceId was working and it was.  The problem is that the messages
are not being shown on the page.  In the case of page level validation
error messages, those do show up.  The error messages that dont show up
are those that are added using FacesContext.addMessage() in the backing
bean.  I am sure I am specifying the correct client id in the backing,
the messages simply don't show up.  What could possibly be going wrong?
 Any help would be greatly appreciated.


Backbase?

2007-03-09 Thread SOSELLA
Does anybody have any experience with Backbase for JSF?


Has anyone used G4JSF or GWT?

2007-03-07 Thread SOSELLA
Has anyone used G4JSF or GWT?  I have used Ajax4JSF extensively and want
to make my app even more rich and Web 2.0ish.  I have read Smirnov's
articles and agree with him that JSF is a good server-side solution for
navigation, etc.  G4JSF looks promising but wanted some feedback before
I invest time in it.  Are there other client-side UI frameworks using
AJAX features other than GWT?  Essentially, Web 2.0 like UI controls
that use Ajax4JSF rather than GWT?  Or am I missing something?


h:messages within f:subview not working

2007-03-06 Thread SOSELLA
I am using the following JSF code snippet:


   ...
   
  
  ...
   
   ...


and in the backing bean I am adding an error message such as

FacesContext.getCurrentInstance().addMessage("myClientId", new
FacesMessage("error"));


The error message is not showing up.  I have tried all sorts of
combinations of addMessage() and new FacesMessage() and attributes with
, but nothing works.  Any advice?


Is there any way to specify Sunday-Saturday as the Week (as opposed to Monday-Sunday) in t:schedule?

2007-02-12 Thread SOSELLA
Is there any way to specify Sunday-Saturday as the Week (as opposed to
Monday-Sunday) in t:schedule?


how do you specify an All Day entry for t:schedule?

2007-02-12 Thread SOSELLA
I looked at the Examples source for adding an all day entry:

DefaultScheduleEntry entry7 = new DefaultScheduleEntry();
entry7.setId(RandomStringUtils.randomNumeric(32));
entry7.setTitle("All day event");
entry7.setSubtitle("This event renders as an all-day event");
entry7.setAllDay(true);
model.addEntry(entry7);

The startTime() nor endTime() are not called on the entry.  How does the
entry know its day?

Thanks!


Scrollbar for t:inputtextarea ?

2007-02-09 Thread SOSELLA
Is there a way to have scrollbars for t:inputtextarea?  Is there an HTML
passthrough attribute to use?


Is there a tag that can output text ith parameters (format string) with parameters as attributes?

2007-02-07 Thread SOSELLA
Is there a tag (i.e., outputText) that you can specify a format string
and then pass parameters as attribute values?  That is, a tag something
like:



and in the message bundle something like this:

fmt_str_key=Hello: {0}

Thanks


Re: inputCalender position

2007-01-30 Thread SOSELLA
Ok...this might be a complete hack, but...

surround your  tag with  ... 

I looked at the JS code and this seems to work.  Let me know if this
works for you.



- Original Message -
From: ramsi <[EMAIL PROTECTED]>
Date: Tuesday, January 30, 2007 11:05 am
Subject: Re: inputCalender position
To: users@myfaces.apache.org

> 
> Hi Stephan,
> 
> thanks for your answer!!!
> 
> 
> Stephen Osella wrote:
> > 
> > I have the same problem with the position of the inputCalendar 
> tag.  I
> > posted an issue a few days ago and got a response saying that the
> > position is defined in:
> > 
> > "It is defined in the .js files accompanying the distribution.
> > specifically, popcalendar_init.js and popcalendar.js (Not sure 
> about the
> > exact filenames, going from memory here)."
> > 
> > I have not yet started to debug this issue, so I am still working 
> on it
> > and would like help as well.
> > Once again: thank you.
> > 
> > As for having an icon instead of a button, use the following 
> attributes:> 
> > renderAsPopup="true" 
> > renderPopupButtonAsImage="true"   
>   
> > popupButtonImageUrl="images/calendar.gif" 
> > 
> > If you resolve the position issue, please post the solution.
> > 
> > momentarily I do not have time for it. approximately in one week 
> I can
> > startet this issue.
> > afterwards I will contact you!
> > 
> > Thanks!
> > 
> > Merci
> > 
> > 
> 
> -- 
> View this message in context: http://www.nabble.com/inputCalender-
> position-tf3142103.html#a8712775
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
> 


Re: inputCalender position

2007-01-30 Thread SOSELLA
I have the same problem with the position of the inputCalendar tag.  I
posted an issue a few days ago and got a response saying that the
position is defined in:

"It is defined in the .js files accompanying the distribution.
specifically, popcalendar_init.js and popcalendar.js (Not sure about the
exact filenames, going from memory here)."

I have not yet started to debug this issue, so I am still working on it
and would like help as well.

As for having an icon instead of a button, use the following attributes:

renderAsPopup="true" 
renderPopupButtonAsImage="true" 
popupButtonImageUrl="images/calendar.gif" 

If you resolve the position issue, please post the solution.

Thanks!


t:inputCalendar popup location

2007-01-27 Thread SOSELLA
I am getting this weird behavior where the popup dialog for the
t:inputCalendar tag pops up at the lower right of the window/screen. 
This doesn't happen every place I have used t:inputCalendar, but happens
in one instance.  How is the position of the popup dialog defined or
controlled?


How stable is rcfaces?

2007-01-26 Thread SOSELLA
Hi..thanks for the tip about using rcfaces, just downloaded it; seems
interesting.  How stable is it?


Re: removing inputText when using inputCalendar

2007-01-25 Thread SOSELLA
Thank you for the solution; style="display:none" worked.

Going to be demanding now...

I noticed that the JS code generated creates arrays with English words
for days and months (Monday, etc. and January, etc.).  Is there a way to
internationalize this?

Also, is there a way to change the imgDir variable so I can set my own
image to use?

Thanks a bunch!

- Original Message -
From: Mike Kienenberger <[EMAIL PROTECTED]>
Date: Thursday, January 25, 2007 12:14 pm
Subject: Re: removing inputText when using inputCalendar
To: MyFaces Discussion 

> I don't think there is a way to do this yet.  It'd be a good
> improvement.   Add an attribute (inputTextRendered=false?) and create
> a patch.
> 
> Another possiblity would be "inputTextStyle" -- then you could
> probably use inputTextStyle="display:none"
> 
> On 1/25/07, Josué Alcalde González <[EMAIL PROTECTED]> wrote:
> > El jue, 25-01-2007 a las 10:04 -0600, [EMAIL PROTECTED] 
> escribió:> > Is there anyway to not have the inputText when using 
> the inputCalendar
> > > tag?  I am setting the renderPopupButtonAsImage to true, but 
> dont want
> > > to show the inputText box.
> >
> > style="display:none"
> > --
> > ___
> > Josué Alcalde Gon?alez
> > [EMAIL PROTECTED]
> > Dpto. Desarrollo
> >
> > CSA - Centro Regional de Servicios Avanzados
> > C/ López Bravo, 1
> > Pol. Ind. Villalonquéjar (Burgos)
> >
> > Tel. (+34) 947 256 250
> > Fax. (+34) 947 256 583
> >
> > Web: http://www.csa.es
> >
> >
> >
>


removing inputText when using inputCalendar

2007-01-25 Thread SOSELLA
Is there anyway to not have the inputText when using the inputCalendar
tag?  I am setting the renderPopupButtonAsImage to true, but dont want
to show the inputText box.