Thanks Christopher, I got the idea, but this is where I am really struggling.
Together with executing the action associated with the node, I have to
change its styleclass to reflect that it was as if the node was clicked. To
achieve that using the normal way, my command link has this:
En l'instant précis du 16/08/07 22:48, daniel ccss s'exprimait en ces
termes:
Hi all, I think I have found 2 problems (JSF+Tomahawk)
1- If the property readonly of a h:selectOneMenu is set to true, and
in the backing_bean when i try to get the value of the selectOneMenu
item I always get a
Hi Andrew,
I have checked the aa.js api. i think you refer to this function
getGlobalScriptsDeclarationsList. I did overwrite this function in my jsp
page and return an array of global variable.
but the tomahawk popup window still not popup as what I expected. any idea
about this?
The way how
Hi Christopher, I've got the same problem, and I couldn't solve it even
session-scopin my backing bean.
I even tried to create the HTMLDataTable - Bean binding in the bean itself,
as suggested elsewhere, but I didn't manage to have my commandlink working;
so I'd like to have your workaround, if
Hi!
as long as the code of method setNodeSelected does not depend on
having an instance of ActionEvent you could simple pass null as a
parameter. In my opinion you should do some refactoring because you use
action and actionListener at the same time. The action method is
basically used for
Hi Niccolo!
The main problem when using a request scoped bean is that it is
recreated with each request (simple truth but the main problem ;)). So
is the result of your list that you probably created in your backing
bean. This is where the problem starts. When looking for events to be
Thank you for your quick answer,
I already tried with the t:saveState tag and with the session bean.
I'm going to try with a lazy getter, but I'm afraid it won't work as I
should solve
the empty list problem with the htmlDataTable inside the bean (it's smart a
solution,
I really thought it
Good to hear that.
BTW: did you see my post regarding pprPanelGroup breaking posting of
UTF8 encoded text?
regards,
michał
On 15/08/07, Ernst Fastl [EMAIL PROTECTED] wrote:
Hi Michal,
Sounds lilke a good workaround to me. We are currently working
on JavaScript execution within PPR regions.
Hi ,
I did mention about this in my previous messge : At the moment I haven't
found a way how to pass a htmlpopup client id to my page. I am thinking of
storing the htmlpopup client id in a static HashMap in a class..
What I did is I bind the t:popup and get the clientID from the bind
Any help please?
Tks!
ignicolist wrote:
Its what i am doing but don´t work!
an example:
DefaultScheduleEntry entry = new DefaultScheduleEntry();
entry.setId(1);
model.removeEntry(entry);
this code is supose to remove the entry from de model with id 1 no? i just
want
In your model implementation, do you load the persistent entry from the
database, using the supplied id, before you delete it?
Jurgen
Op donderdag 16-08-2007 om 14:01 uur [tijdzone -0700], schreef
ignicolist:
Its what i am doing but don´t work!
an example:
DefaultScheduleEntry entry =
Yes, because the entry when i select it remove with
model.removeSelectedEntry(); but if i specify his id: entry.setId(1);
model.removeEntry(entry); dont eliminate. And ids are the same in the two
situacions.
Jurgen Lust-2 wrote:
In your model implementation, do you load the persistent
I try another way:
public void deleteSelectedEntry(ActionEvent event)
{
if (model == null)
return;
String x= model.getSelectedEntry().getId();
DefaultScheduleEntry entry = new DefaultScheduleEntry();
entry.setId(x); //*1
I believe you have to pass exact reference to object that was added to
schedule, not some other object containing same data, example:
ScheduleEntry foo = new MyScheduleEntry(bar);
ScheduleEntry foo2 = new MyScheduleEntry(bar);
model.addEntry(foo);
model.removeEntry(foo2); // wrong
I submitted a patch to Jira:
https://issues.apache.org/jira/browse/MYFACES-1711
If there are any questions or requests for improvements, do not hesitate to
contact me.
Regards,
Thomas
original Message
Hi Martin,
Hi Thomas,
what would be the sense of catching an
Yes you have right, i try do that when a add a entry and remove it after
enter it, and its actualy remove. But, how do i get the reference of a entry
that i want eliminate in other part of the program ? for example i know the
id of the entry and i want remove that entry. how i get the reference
From SimpleScheduleModel.java
/**
* Remove an entry from the model.
*
* @param entry
*the entry to remove
*/
public void removeEntry(ScheduleEntry entry)
{
entries.remove(entry);
}
...
private final TreeSet entries;
I don't know
I could be wrong, but I don't think there's anything special about how
newspaper columns are rendered.
If you have 4 columns in your table, and you set newspaperColumns=3,
then you end up with a table with 12 columns.
A, B, C, D, A, B, C, D, A, B, C, D
There's no style attribute because
Make sure that the popup javascript file is being loaded, I think it
has an external one. You may have to force it to load the first time
the page loads. AA isn't very robust with handling external JS and CSS
references.
On 8/17/07, pdt_p [EMAIL PROTECTED] wrote:
Hi ,
I did mention about
Well i am a litle noob to all these, so i cant put your ideas to work! :-((
So i am using SimpleScheduleModel, so you say to create that class in the
component Schedule or in my aplication?
Because i create the class in my aplication and don´t work. Dam this is so
complicated...
Michał
I wrote the code in 'on the fly' just to give you idea how should it
look, I didn't try it
On 17/08/07, Michał 'Gandalf' Stawicki [EMAIL PROTECTED] wrote:
Simply casting it should be fine:
for(ScheduleEntry e : (TreeSetScheduleEntry)entries)
On 17/08/07, ignicolist [EMAIL PROTECTED] wrote:
Simply casting it should be fine:
for(ScheduleEntry e : (TreeSetScheduleEntry)entries)
On 17/08/07, ignicolist [EMAIL PROTECTED] wrote:
I try what you say but give me a error in: for(ScheduleEntry e : entries)
The Error: Type mismatch: cannot convert from element type Object to
Note that there's other reasons why command-links won't work beyond
having request-scoped backing beans. For instance, maybe validation
is failing and you don't realize it -- try putting a t:messages
component on your page.Posting more details and a simplified
version of your page/code is
I am just wondering if there is any plans to support @ functionality
in a selector
this works:
@agent ie {
#mainForm { ... }
}
@agent gecko {
#mainForm { ... }
}
this doesn't, but would be really nice:
#mainForm {
@agent ie { ... }
@agent gecko { ... }
}
Sorry to bee so boring and noob, but i realy need to do this, i need a
funcionality to show and occult calendars, and i have a entry associate to a
calendar, so when i need occult the calendar i need to remove the entries
of that calendar from the model. everything working, just need remove the
I have submitted a new patch to https://issues.apache.org/jira/browse/
TOMAHAWK-83 because the existing patches were out of date with the head.
So I am wondering, how do submitted patches get committed?
Thanks for any guidance.
-Sol
Try this, remember to set valid package:
#SET ME package #SET ME
import java.util.TreeSet;
import org.apache.myfaces.custom.schedule.model.ScheduleEntry;
import org.apache.myfaces.custom.schedule.model.SimpleScheduleModel;
/**
* @author mstawick
*/
public class ExtendedScheduleModel
I do that cllass, and dont give erros, but in the aplication when a call that
class it show me a blank page!
i am calling my class like that : h:commandLink
action=#{remove.Remove2}
h:outputText value=Mostrar/Ocultar
/
Hi,
with Tobago 1.0.12 the layout of one of my popups is not calculated correct
anymore. With 1.0.11 the
layout was correct.
Here's the (simplified) jsp code:
tc:page id=inputPage width=300px height=200px
tc:panel id=inputPanel
tc:button id=popupButton
label=Popup
Hello Andrew,
We do have plan to better support per agent customization to match existing
XSS format.
Regards,
~ Simon
On 8/17/07, Andrew Robinson [EMAIL PROTECTED] wrote:
I am just wondering if there is any plans to support @ functionality
in a selector
this works:
@agent ie {
Very cool. Good to know ;-).
~~~
Kito D. Mann - Author, JavaServer Faces in Action
http://www.virtua.com - JSF/Java EE consulting, training, and mentoring
http://www.JSFCentral.com - JavaServer Faces FAQ, news, and info
* Sign up
Sorry to put this out on the JSF list, but I am having a difficult
time with IE7 in standards mode.
I am building a page with a header, footer and content. Inside the
content, I have other similar layouts. I would like to have the header
and footer auto-layout and the content take up the
i have the class correct without errors. But when i call it show a blank
page!
ExtendedScheduleModel x = new ExtendedScheduleModel();
x.Remove2(8);
I call the class like that. I think its correct! so why the blank page? if i
put thouse two code lines in comments dont have the blank page, so
Question 1) I was hoping to clean up the skin css by having different
css files per browser type as necessary. Example:
skin.css:
@agent ie {
@import url(ieOnly.css);
}
DIV {
-tr-rule-ref:selector(.ImportMe:alias);
}
ieOnly.css:
.ImportMe:alias {
background-color: yellow;
The complexity of using t:saveState will probably depend on your application.
I've got an application with more than 100 pages, but most of the uses
of those pages are self-contained.The t:saveState needs are either
self-contained in a specific page or only span a small number of
pages.
On
If your old version was considerably old (maybe 1.1.3 or older? I
don't remember the exact changeover date), then you were probably
using implicitly created dummy form components around certain sets of
components, like menus.
That implicit form creation no longer happens, and you probably need
to
Right, it was fubar'ed, SimpleScheduleModel wasn't meant for extending
:) This works - you use like you tried at the beginning - create
entry, set id and you can remove it. BTW: I think your bean should be
session, not request, unless you intended so.
/*
* Licensed to the Apache Software
On click of hyperlink i wanna pass the object instance i.e. address of the
object
FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get(viewId)
Please note viewId is instance of my object like DeviceView viewId;
I am checking the value at every stage it holds the
Forgot to mention i dont wanna use managed-property facility in the
faces-config as i am using Session scope Bean and i cant use request scope
bean
bansi wrote:
On click of hyperlink i wanna pass the object instance i.e. address of the
object
Hi Andrew,
If @import works, and it doesn't, you could do this:
skin.css
@import url (ieOnly.css);
@import url(geckoOnly.css);
/* all common css goes here */
af|foo::xxx {}
ieOnly.css
@agent ie
{
/* ALL css in here is ie only */
}
geckoOnly.css
@agent gecko
{
/* ALL css in here is gecko only
Further to my below posting i added the following code which works only once
. I guess its due to session bean
FacesContext context = FacesContext.getCurrentInstance();
Application application = context.getApplication();
application.createValueBinding
Hi again, Tks for your great example, i do every thing, and i found a
problem, in the function remove:
protected boolean removeEntry(String id)
{
ScheduleEntry entry = null;
String currentId = null;
1- I the component is readonyl, it will never update the backing bean's
value. That mean the value of your getXxx() in you backing bean will be
the same you initialized it with programmatically
Nop, the value before is 21, if the select is not readonly then the value I
get is 21 if is readonly is
43 matches
Mail list logo