Re: AbstractFormValidator in Wizard

2014-03-31 Thread N. Metzger
The form seems to be submitted 2 or 3 times although - as out technical
support assures me - the user clicked the submit button only once. I could
reproduce it only once when I used the enter key to submit the form instead
of clicking Finish with the mouse.

I guess I have 2 questions:
1) Obvious: Has anyone ever experienced this and is there a known solution?
2) Is my approach of using an AbstractFormValidator the right one, or should
I have gone about this another way?

Thanks,
Natalie

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AbstractFormValidator-in-Wizard-tp4665164p4665185.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



AbstractFormValidator in Wizard

2014-03-27 Thread N. Metzger
I have a problem with form validation within a wizard. The wizard is used for
account setup which concludes in setting a password as the final step.
Originally this wasn't inside a wizard, but a panel with an embedded form.
As I was dealing with this panel, I added it to the wizard, disabling the
form buttons. Now I had to add form validation again and used an
AbstractFormValidator (see below). It usually works, but occasionally the
form seems to be submitted multiple times although I clicked Finish only
once. I rarely can reproduce it, but it happens to our users every now and
then.

Maybe someone can shed light on what I might be doing wrong.

The method below is called in the constructor of the WizardStep, and just so
you know, the form component password2 has validators checking if the
required number of letters, numbers, special characters etc. are fulfilled.

private void addFormValidator(){
  add(new AbstractFormValidator() {
public FormComponent[] getDependentFormComponents() {
try{
log.debug({}:{}: Retrieving form coponents, uniqueId,
midm);
FormComponent passwd = (FormComponent)
passwordPanel.getPasswordForm().get(password);
FormComponent passwd2 = (FormComponent)
passwordPanel.getPasswordForm().get(password2);
log.debug({}:{}: Found 2 form coponents, uniqueId,
midm);
return new FormComponent[] { passwd, passwd2 };
} catch (Exception e){
return null;
}
}

public void validate(Form form) {

try {
log.debug({}:{}: Before password change, uniqueId,
midm);
   
passwordPanel.changePassword(passwordPanel.getNewPassword(), null);
log.debug({}:{}: After password change, uniqueId,
midm);
if (!authenticated){
log.debug({}:{}: Before authentication, uniqueId,
midm);
authenticateUser();
log.debug({}:{}: After authentication, uniqueId,
midm);
}
} catch (UnavailableDataSourceException e) {
form.error(There was a database error changing your
password, please try again later.);
} catch (UpdatePasswordException e) {
form.error(There was an error changing your password: 
+ e.getMessage());
} catch (PreviousPasswordException e) {
form.error(The submitted password was previously used!
Please choose a  +
different password);
} catch (ExpiredPasswordException e) {
log.error({}:{}: Unable to update password for user,
reason:  + e.getMessage(), 
uniqueId, midm);
form.error (An internal error occurred while updating
your password, the password was NOT changed!);
} catch (ServicePasswordIsMidasPasswordException e) {
form.error(The submitted service password was your
MIDAS password.  +
 This is not allowed.);
} catch (ErrorUserCreationException e) {
log.error({}:{}: Unable to update password for user,
reason:  + e.getMessage(), 
uniqueId, midm);
form.error (An internal error occurred while updating
your password, the password was NOT changed!);
} catch (PasswordChangedTodayException e) {
form.error(Your password can only be changed once a
day!);  
} catch (PasswordExpirationUpdateException e) {
log.error({}:{}: Unable to update password for user,
reason:  + e.getMessage(), 
uniqueId, midm);
form.error (An internal error occurred while updating
your password, the password was NOT changed!);
} catch (Exception e) {
log.error({}:{}: Unable to update password for user,
reason:  + e.getMessage(), 
uniqueId, midm);
form.error (An internal error occurred while updating
your password, the password was NOT changed!);
}
}
  }); 
}

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AbstractFormValidator-in-Wizard-tp4665164.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket Security examples

2013-06-13 Thread N. Metzger
We have Wicket running with Shiro since version 1.4, and it's still doing
fine under 6.7. Due to time restrictions I haven't looked into wicket-shiro
for a long time, but no problems have surfaced.

Natalie 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-Security-examples-tp4659398p4659474.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Problem with ListView and Feedback Panel

2013-04-16 Thread N. Metzger
I'm running Wicket 6.3 and have an approval page where a user can approve
certain accounts that a user requests. The form on the page has several
ListViews that may or may not be visible. On each list view, the list item
has a radio button where the approver can set the approval to yes or no.

My problem is with the Feedback Panel. I'm setting the approval radio button
to required if the corresponding ListView is visible. That works. If I don't
select anything, the page doesn't do anything on submit as the form didn't
validate. This is correct. But the Feedback Panel doesn't show anything
either. It used to - under 1.5 I believe, I'm not quite sure when exactly it
stopped. I can implement onError(), but there I can only give a generic
error message like Something didn't validate in the form. The session
feedback messages are empty.

After combing through the user forum, I found that
listView.setReuseItems(true) should solve the problem. I tried that, and
miraculously my feedback messages all show. But now I have the problem that
with the reuse my list view data is not behaving as it should. I have a lot
of Ajax interaction on each line, and as the ListView is reusing its stuff,
it doesn't work as intended anymore.

Long story short, is there any way to get my Feedback Panel working again
without listView.setReuseItems(true)?

Thanks,
Natalie



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Problem-with-ListView-and-Feedback-Panel-tp4658029.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Problem with ListView and Feedback Panel

2013-04-16 Thread N. Metzger
Ok, I understand the philosophy behind it. 

My problem is that I'm not generating error messages myself, but rely on
Wicket for 2 things. In the ListView my radio button has setRequired(true)
and my DateTextField has a PatternDateConverter, so how do I pull the
validation error messages out for those and put them on the page?

Natalie



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Problem-with-ListView-and-Feedback-Panel-tp4658029p4658032.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Problem with ListView and Feedback Panel

2013-04-16 Thread N. Metzger
I probably wasn't precise enough. The components in the ListView are still
working fine. But I have an AjaxCheckBox outside of the ListView that gives
me Select all functionality. I added the web markup container that wraps
the listview to the ajax request target, but it doesn't update anymore after
I reuse listview items.

Natalie



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Problem-with-ListView-and-Feedback-Panel-tp4658029p4658037.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Problem with ListView and Feedback Panel

2013-04-16 Thread N. Metzger
In the end I think I have to use some other repeater to make that work,
thanks for the help, though!



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Problem-with-ListView-and-Feedback-Panel-tp4658029p4658039.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



PageableListView item removal

2013-03-15 Thread N. Metzger
Hi all,

I'm looking at a strange behavior of my PageableListView. 

I have a PageableListView with an AjaxPagingNavigator within a
WebMarkupContainer. Recently I added an AjaxLink to the list view that
removes an element from the underlying list. The view refreshes, but takes
off the first(!) element of the list view instead of the element that was
really deleted. If I refresh the whole page, the view displays correctly.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/PageableListView-item-removal-tp4657283.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: PageableListView item removal

2013-03-15 Thread N. Metzger
I wasn't using the setReuseItems property at all, but tried to set it to
false: no change. Here's the code:

 serviceContainer = new WebMarkupContainer(serviceData);
serviceContainer.setOutputMarkupId(true);
serviceContainer.add(new
AjaxSelfUpdatingTimerBehavior(Duration.seconds(15)){
  protected void onPostProcessTarget(AjaxRequestTarget target){
  try {
  services =
administrationService.updateServices(uniqueId, midm, userMidm);
  logger.debug({}:{}: Services refreshed for user  +
username, uniqueId, midm);
  updateCounter ++;
  //stop update after 15 minutes
  if (updateCounter  60){
  logger.debug({}:{}: Stopped service self updating
behavior, uniqueId, midm);
  stop(target);
  }
  
  } catch (Exception e) {
  logger.debug({}:{}: Unable to refresh the service
view for user  + username, 
   uniqueId, midm);
  warn(The system is unable to refresh the service
view. Please reload the user.);
  }
  target.add(feedback);
  }
});

PageableListViewService serviceList = new
PageableListViewService(serviceList, 
new
PropertyModelListlt;Service(ServicesTabPanel.this, services), 
   
ELEMENTS_PER_PAGE) {
@Override
protected void populateItem(ListItemService item) {
final Service service = item.getModelObject();
final String serviceType = service.getServiceType();

item.add(new Label(serviceType, new
PropertyModel(item.getModel(), serviceType)));
item.add(new Label(login, new
PropertyModel(item.getModel(), serviceLogin)));
item.add(new Label(context, new
PropertyModel(item.getModel(), serviceContext)));
item.add(new Label(status, new
PropertyModel(item.getModel(), accountStatusWebString)));
item.add(new Label(syncDate, new
PropertyModel(item.getModel(), timestamp)));
item.add(new Label(expireDate, new
PropertyModel(item.getModel(), serviceExpireDate)));

if (service.isIntegrable())
item.add(new Label(integratable, true));
else
item.add(new Label(integratable, false));

if (service.isIntegrated())
item.add(new Label(integrated, true));
else
item.add(new Label(integrated, false));

item.add(new AjaxLink(syncButton){
public void onClick(AjaxRequestTarget target) {
try {
logger.info({}:{}: Synchonizing  +
serviceType +  services for  + userMidm, uniqueId, midm);
   
administrationService.syncMidasUserService(uniqueId, midm, userMidm,
serviceType);
success(Synchronized Service
+serviceType);
} catch (Exception e) {
logger.error(uniqueId + : Caught an
exception during admin sync service  + serviceType, e);
error(An error occurred while trying to
synchronize service  + serviceType);
}
target.add(feedback, serviceContainer);
}
});
addRemoveServiceLink(item, service);
}

private void addRemoveServiceLink(ListItem item, final
Service service){
AjaxLink removeServiceLink = new
AjaxLink(removeServiceLink){
public void onClick(AjaxRequestTarget target) {
int userMidm = service.getMidm();
try {
   
administrationService.removeServiceFromUser(uniqueId, midm, userMidm,
service);
success(Successfully removed service  +
service.getServiceType() + 
(login  +
service.getServiceLogin() +) from current user.);
services.remove(service);
} 
catch (UnavailableDataSourceException e) {
error(A database error occurred while
trying to remove the service  + service);
}

Re: PageableListView item removal

2013-03-15 Thread N. Metzger
Also, the ajax timer on the markup container stops after I hit the
removeLink. 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/PageableListView-item-removal-tp4657283p4657291.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: AjaxEditableLabel not saving after migration to 6.3

2013-01-11 Thread N. Metzger
I believe this is a bug in wicket 6.3, because I switched to wicket 6.4 and
it miraculously works again without code changes on my side.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AjaxEditableLabel-not-saving-after-migration-to-6-3-tp4654769p4655314.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Has DropDownChoice changed?

2012-12-14 Thread N. Metzger
I did all that, that's not my point.

I'm just going to go ahead a create the behavior that I want myself, so
please consider this thread be closed.

Natalie



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Has-DropDownChoice-changed-tp4653271p4654819.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



AjaxEditableLabel not saving after migration to 6.3

2012-12-13 Thread N. Metzger
Hi all,

I recently migrated from 1.5.5 to 6.3. My objective is to display a list of
group members with the ability to insert or update an expiration date for a
specific member. It worked correctly before, but now I'm having problems
with my AjaxEditableLabel nested in a PropertyColumn. I can click the label
and type something, but on hitting enter, nothing changes and the onSubmit()
is never called.  As I said, it worked in 1.5. 

Below is a code excerpt. 

Any pointers would be appreciated,
Natalie


private class PersonTabPanel extends Panel
{
public PersonTabPanel(String id){
super(id);

AjaxFallbackDefaultDataTable dataTable = new
AjaxFallbackDefaultDataTable(memberTable, definePersonColumns(), 
new MemberDataProvider(currentGroup,
MEMBER, PERSON), ELEMENTS_PER_PAGE);
dataTable.setItemReuseStrategy(new
DefaultItemReuseStrategy());
add(dataTable); 
 
}
}

public ListIColumnlt;MemberInterface, Object definePersonColumns(){
ListIColumnlt;MemberInterface, Object columns = new
ArrayListIColumnlt;MemberInterface, Object();

columns.add(new PropertyColumnMemberInterface, Object(new
ModelString(Last Name), lastname, lastname));
columns.add(new PropertyColumnMemberInterface, Object(new
ModelString(First Name), displayedFirstName, displayedFirstName));
columns.add(new PropertyColumnMemberInterface, Object(new
ModelString(Email Address), emailAddress, emailAddress));

if (isMemberEditAuthorized(currentGroup.getGroupCode()) ){
  
columns.add(new PropertyColumnMemberInterface, Object(new
ModelString(Expiration (MM/DD/YY)), expirationDate, expirationDate)
{
@Override
public void
populateItem(ItemICellPopulatorlt;MemberInterface cellItem, String
componentId,
 final IModelMemberInterface
rowModel)
{
AjaxEditableLabelDate editableLabel = new
AjaxEditableLabelDate(componentId,
new
PropertyModelDate(rowModel, expirationDate)){
@Override
protected void onSubmit(AjaxRequestTarget target){
int groupCode = currentGroup.getGroupCode();
Date expiration = (Date)
getDefaultModelObject();
if (expiration != null)
expiration = new Date(expiration.getTime() +
86399000L); //expires at 23:59:59 on the given date

MemberInterface selectedMember =
(MemberInterface) rowModel.getObject();
int gidm = selectedMember.getGidm();
String memberType =
selectedMember.getMemberType();

try {
expireMember(sessionId, midm, groupCode,
gidm, memberType, expiration);
logger.debug({}:{}: Set a member expiration
date to +
expiration+ for GIDM  +gidm,
sessionId, midm);
} catch (Exception e) {
logger.error(Caught an exception while
updating a group member expiration, e);
error(An error occurred while updating the
expiration date.);
}

getLabel().setVisible(true);
getEditor().setVisible(false);
target.add(this);
target.appendJavaScript(window.status='';);
target.add(feedback);
}

@Override
protected String defaultNullLabel(){
return ([click to edit]);
}

@Override
protected void onError(AjaxRequestTarget target){

target.add(feedback);
}
};
cellItem.add(editableLabel);
}
});

[Rest of code omitted]
 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AjaxEditableLabel-not-saving-after-migration-to-6-3-tp4654769.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Has DropDownChoice changed?

2012-12-13 Thread N. Metzger
Anybody with a clue about the DropDownChoice?

I had to set 

dropDownChoice.setNullValid(true);

which is not my favorite option. I miss the old behavior where in the
initial rendering the was a Choose one option which vanished after the
user made the first real choice. Has that been removed in 6.3? 

Natalie



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Has-DropDownChoice-changed-tp4653271p4654770.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Has DropDownChoice changed?

2012-12-13 Thread N. Metzger
I don't think I made myself clear. I would like to set
dropDownChoice.setNullValid(false);

And yes, I can do it. But in 1.5 on the first upload I got a choice of
Choose One
Option 1
Option2

Then the user would choose either option 1 or 2 and Choose One would
vanish.

In 6.3 I only get
Option 1
Option 2

that's why I was asking if the behavior had changed. A better question would
be: why did the behavior change? I liked it the way it was.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Has-DropDownChoice-changed-tp4653271p4654774.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Has DropDownChoice changed?

2012-10-23 Thread N. Metzger
I recently upgraded from 1.5.5 to 1.5.8, and I do have a DropDownChoice with
settings

dropDownChoice.setNullValid(false);
dropDownChoice.setRequired(true);
dropDownChoice.setOutputMarkupId(true);

It used to be that on the first load of the page Choose One was displayed
as the first option, which vanished after choosing one of the non-null
options. This is exactly what I wanted. Now under 1.5.8 the Choose one is
gone, and it displays the first choice. I have an Ajax update on the choice
change that displays a different expiration date for every choice. Now of
course the first choice doesn't show an expiration date as the Ajax on
update wasn't called yet. And if a user has only one option to choose from,
the expiration date never gets displayed. Could someone look into this?

Also, unrelated to this topic, did the wizard change? My next button used to
display Next , now it displays Next gt; which is annoying. I changed
the display to Next in my properties file, but I have to admit I liked the
Next  and would like to have it back. (Same with Previous.)

Thanks for your help,
Natalie



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Has-DropDownChoice-changed-tp4653271.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Upgrade from 1.4 to 1.5: timeframe?

2012-03-09 Thread N. Metzger
Hi all,

I'm finally coming up on upgrading from 1.4.19 to 1.5. To manage my projects
better, could anybody comment on how long it took them to upgrade? I know it
depends on how complicated your application is, but as a general
guideline, does it take minutes, days, months?

Thanks,
Natalie

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Upgrade-from-1-4-to-1-5-timeframe-tp4460050p4460050.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RE: wiquery css

2012-03-02 Thread N. Metzger
Well, the library is there, and I tried running it without the modification
to my Application which loads my local theme. In that case it displays the
default theme. I'm going to debug some more...

Natalie

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wiquery-css-tp4407116p4438600.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RE: wiquery css

2012-03-02 Thread N. Metzger
Details:

1) I downloaded a theme from jquery and added the relevant part to
wiquery-1.2.3.jar, jar is part of my libararies

2) I updated my Application to implement IThemableApplication:

  public ResourceReference getTheme(Session session) {
if (session instanceof MidasSession){
MidasSession msession = (MidasSession) session;
if(msession.getMetaData(msession.WIQUERY_THEME_KEY) == null){
msession.setMetaData(msession.WIQUERY_THEME_KEY, 

MidasWiQueryThemeResourceReference.get(midas, 1.8.18));
}
log.debug(theme key is  +
msession.getMetaData(msession.WIQUERY_THEME_KEY));
return msession.getMetaData(msession.WIQUERY_THEME_KEY);  
}
else{
log.debug(Session is not a Midas session);
return null;
}
}

3) As there was a jquery version hardcoded, I created my own resource
reference:
public class MidasWiQueryThemeResourceReference extends
WiQueryStyleSheetResourceReference{
private static final long serialVersionUID = 6795863553105608280L;

/**
 * Singleton instance.
 */
private static MidasWiQueryThemeResourceReference instance;

/**
 * Returns the {@link CoreJavaScriptResourceReference} instance.
 */
public static MidasWiQueryThemeResourceReference get(String theme, 
String
version) {
if (instance == null)
instance = new 
MidasWiQueryThemeResourceReference(theme, version);
return instance;
}

/**
 * Builds a new instance of {@link CoreJavaScriptResourceReference}.
 */
private MidasWiQueryThemeResourceReference(String theme, String 
version) {
super(WiQueryCoreThemeResourceReference.class, theme
+ /jquery-ui-+version+.custom.css);
}

}


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wiquery-css-tp4407116p4438639.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RE: wiquery css

2012-03-02 Thread N. Metzger
I'm one step further. It's not oc4j or weblogic, it's the fact that I switch
from development mode to deployment mode. It happens in both containers.


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wiquery-css-tp4407116p4439118.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RE: wiquery css

2012-03-02 Thread N. Metzger
Found it!

In deployment mode it looks for the minified css which didn't exist in the
jar file. I added it and - voila - all works fine. 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wiquery-css-tp4407116p4439324.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RE: wiquery css

2012-03-01 Thread N. Metzger
Me again, I figured it all out and it work beautifully ... when deployed in
weblogic.

For my production environment I unfortunately have to use oc4j, and somehow
I'm unable to load the resource in this environment:
2012-03-01 20:51:03,471 WARN  (PackageResource.java:594) - Unable to find
package resource [path =
org/odlabs/wiquery/ui/themes/mytheme/jquery-ui-1.8.18.custom.min.css, style
= null, locale = null]

Maybe this is not the right forum, but perhaps someone has an idea.

Thanks!

Natalie

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wiquery-css-tp4407116p4437198.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Wizard overview bar

2012-02-23 Thread N. Metzger
Hi all,

I have a wizard implemented that walks the user through a dynamic amount of
steps. I also added an overview bar to show progress to the user,
essentially a picture moving an arrow from left to right. So far the
overview is defined upon wizard creation with the picture staying the same
in all steps.
Now, I can go ahead and make an Ajax wizard out of my normal wizard and
hopefully update the overview bar with every step. Before going to such
lengths, though, is there a way to do it with the regular wizard?

Natalie

P.S. Wicket 1.4.19

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wizard-overview-bar-tp4414812p4414812.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RE: wiquery css

2012-02-23 Thread N. Metzger
I tried the easy way out because I just need the style for one page so far.
Unfortunately it didn't work with

wicket:head

/wicket:head

Should I have used any other style definitions?

And if I go the whole route with the themeroller: I got myself a zip file
with all the definitions for my layout. Where in my code do I put this zip
file or the unzipped files so it gets called with the new theme name I give
it in my WebApplication?

Thanks,
Natalie

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wiquery-css-tp4407116p4414854.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wizard overview bar

2012-02-23 Thread N. Metzger
Thanks for the quick reply!

I think I can go the AJAX way, I was just wondering if there's something
quicker than that.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wizard-overview-bar-tp4414812p4414873.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wizard overview bar

2012-02-23 Thread N. Metzger
Dan,

that's not what I meant. It never occurred to me to make my entire
Application AJAX. I meant I can make an AjaxWizard, no problem. 

My question was about the basic wizard, if I can have an overview bar that
is changeable while using the regular Wizard class. But I guess not...

Thanks,

Natalie

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wizard-overview-bar-tp4414812p4415788.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



wiquery css

2012-02-21 Thread N. Metzger
Hi all,

I'm having another of my blind mornings. 
I just tried wiquery for the first time and had an accordion running within
a few minutes, so first of all: thanks!!!
Now: what's the best way to change the look and feel? I saw a that you can
define a jquery theme and upload if somehow. How? Or should I just define
the css for my page? If the latter, what should I use as my base?

Thanks,
Natalie

P.S. I'm using wicket 1.4.19 with wiquery 1.2.4

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wiquery-css-tp4407116p4407116.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: wizard starting background task

2012-02-09 Thread N. Metzger
To give you more information:

I can ope a new page (or modal window) and start the wicketstuff progress
bar with a new ajax button on that page. 
I can also open a new page with the ajax lazy load panel that will display
the indicating gif while loading stuff in the background.

What I'm looking for is a way to NOT open a new page and NOT to click
another ajax button to start the background task and display the progress
bar. I would like the finish button of the wizard to take care of it.

Now I can of course replace the wizard with a row of pages or panel
replacements, but I don't want to lose the wizard functionality if possible.

Thanks for all your help,
Natalie

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wizard-starting-background-task-tp4371604p4372939.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: wizard starting background task

2012-02-09 Thread N. Metzger
Yes, I tried that, too. I'm having problems ordering events.
So I overwrite the finish button which then starts the background task as
well as opens up a modal window with the progress bar.
Szenario 1) The background process is started by the modal window itself and
I need to add a form that automatically clicks the ajax button on load to
start both the progress bar and the background task (how?).
Szenario 2) The background process is started by the finish button of the
wizard. After that the finish button opens up the modal window with the
progress bar. That leaves me with no option to update the progress bar from
the background task, doesn't it? 

Natalie

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wizard-starting-background-task-tp4371604p4373685.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



wizard starting background task

2012-02-08 Thread N. Metzger
Hi all,

I'm looking for hints to realize the following scenario:

I have a wizard gathering data. On finish the wizard kicks off a background
task that uses the aforementioned data. On clicking finish I would like to
open a new page or even a modal widow that displays a progress bar while the
background task is executing. So far the only working solutions I found are:
1) I start the background task in a lazy load panel, but haven't figured out
yet how to display a progress bar while the lazy load is executing.
2) Open new page and add a form that displays another button to the user
that kicks off the background task. I would really like to avoid the extra
form and button, the finish button of the wizard should be able to do it.

Thanks for your help,

Natalie

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wizard-starting-background-task-tp4371604p4371604.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Problems with continueToOriginalDestination?

2011-02-21 Thread N. Metzger

Hi Daniel,

I have seen it, too. Strangely enough it worked with 1.4.15 on my last
deploy. Now I added Guice in the mix and the redirect works when I deploy
with weblogic. When I deploy with OC4J it fails and redirects me to the
homepage.

Sorry I'm not much help here, but maybe someone else has an idea.

Natalie
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Problems-with-continueToOriginalDestination-tp3172277p3317470.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Problems with continueToOriginalDestination?

2011-02-21 Thread N. Metzger

I solved my problem (not sure if that applies to yours). For OC4J I need my
web.xml to use the servlet configuration whereas for weblogic I use the
filter configuration. Now everything works as intended.

Natalie
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Problems-with-continueToOriginalDestination-tp3172277p3317581.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Ajax wizard and page anchor

2011-02-04 Thread N. Metzger

Hi all,

as we're talking anchors today, does anybody have an idea about how to
change the anchor from the next button to the top of the page?

Also: has anybody tried to nest wizards? I'd like to have a second wizard as
one of my wizard steps. I can just experiment, but if someone has experince
with this, any input will be greatly appreciated.

Thanks!

Natalie
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Ajax-wizard-and-page-anchor-tp2223007p3260201.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Ajax wizard and page anchor

2011-02-04 Thread N. Metzger

Thanks Pedro and Ernesto.

And yes, I'll take any code you'd like to share, no need to reinvent the
wheel :-)

Natalie
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Ajax-wizard-and-page-anchor-tp2223007p3260445.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



AjaxLazyLoadPanel loading component

2010-10-06 Thread N. Metzger

Hi all,

I just don't see it this morning: I have a AjaxLazyLoadPanel to load a big
tree structure which works fine. I see the indicator that it's loading, but
would like to add some words to it, e.g. Loading  So I have
overridden:
public Component getLoadingComponent(String id){
return new Label (id, Loading ...);
}

This works, but now my indicator is gone.
Which would be the correct behavior to attach to the label to show the
little moving circle again?

Thanks,
Natalie
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AjaxLazyLoadPanel-loading-component-tp2964896p2964896.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: AjaxLazyLoadPanel loading component

2010-10-06 Thread N. Metzger

It worked, thanks!!!

Natalie
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AjaxLazyLoadPanel-loading-component-tp2964896p2965012.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



StaticImage, Weblogic 10.3 and fast swap

2010-09-29 Thread N. Metzger

Hi all,

I recently had to convert to weblogic 10.3 to run my project. I'd like to
use its fast swap feature to get rid of constant redeploys while
developing. Now, without fast swap, everything works fine.

My project includes the StaticImage class proposed on this forum. The method
that gives me trouble when I turn fast swap on is:
protected void onComponentTag(ComponentTag tag){
super.onComponentTag(tag);
checkComponentTag(tag, img);
tag.put(src, getDefaultModelObjectAsString());
}

On deploying with fast swap, I get: 

]] Root cause of ServletException.
java.lang.IllegalAccessError: tried to access method
org.apache.wicket.Component.checkComponentTag(Lorg/apache/wicket/markup/ComponentTag;Ljava/lang/String;)V
from class [project path to].StaticImage$beaVersion0_78
at
edu.odu.midas.wicket.util.StaticImage$beaVersion0_78.onComponentTag(StaticImage.java:33)
at 
edu.odu.midas.wicket.util.StaticImage.onComponentTag(StaticImage.java)
at org.apache.wicket.Component.renderComponent(Component.java:2657)
at
org.apache.wicket.markup.html.WebComponent.onRender(WebComponent.java:62)
at [project path to].StaticImage.onRender(StaticImage.java)

I can take the line checkComponentTag out, then it works.

Any ideas?

Thanks,
Natalie 
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/StaticImage-Weblogic-10-3-and-fast-swap-tp2720033p2720033.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: ERROR (Session.java:1406) - Exception when detaching/serializing page

2010-09-16 Thread N. Metzger

For a quick fix (hopefully), I can remove the modal window from my
application.

Generally speaking, though: how do I define my modal window then if I should
not reference the underlying page directly?

Natalie



-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/ERROR-Session-java-1406-Exception-when-detaching-serializing-page-tp2542370p2542433.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: ERROR (Session.java:1406) - Exception when detaching/serializing page

2010-09-16 Thread N. Metzger

I'll try, thanks!!!

Natalie
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/ERROR-Session-java-1406-Exception-when-detaching-serializing-page-tp2542370p2542493.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org