Re: Cleanup in the WO space on the wiki

2010-09-13 Thread Farrukh Ijaz
Hi, It's not a glitch. You need to use two fingers together to enable scroll behavior. Farrukh Sent from my iPad On 13-Sep-2010, at 2:18 PM, Johann Werner wrote: > Indeed a very nice evolution of the wiki. Thanks Pascal! > There is a small glitch on the iPad though: If the pages length excee

Re: More thoughts to rile MS

2010-09-11 Thread Farrukh Ijaz
>> All new additions to the community comes from single people or very reduced >> team among the community, without other even knowing that there is something >> undertaken. Is it possible to organize a common roadmap and a method to be >> used by the community to propose new features (part exi

Re: Does Apple stop to use WebObjects for its internal tools?

2010-09-11 Thread Farrukh Ijaz
Sent from my iPhone On 11, ستمبر 2010, at 3:05 AM, Pascal Robert wrote: > if Chuck and Kieran get hit by a bus Good people deserve better ending unless they are fortunate like Brad Pit to get another chance to live after a car hit? ___ Do not post

Re: EOF issue

2010-09-10 Thread Farrukh Ijaz
cs: > > Parameters: > ec - an EOEditingContext > name - the name of the EOEntity > values - specifies value of Enterprise Object > > It wants the Entity name. That is NOT the source of your problem. > > > Chuck > > >> >> Sent from my iPhone &g

Re: EOF issue

2010-09-10 Thread Farrukh Ijaz
Hi, Try moving the classes inside a java package instead of the default package. AppUser.ENTITY_NAME represents the table name hence can't be replaced with AppUser.class.getName() Farrukh Sent from my iPhone On 10, ستمبر 2010, at 9:22 PM, Michael Gargano wrote: > the classes are in packages

Re: ERMailAttachment - need a public getBodyPart()

2010-09-08 Thread Farrukh Ijaz
could not be visible if I will have to override > finishMessagePreparation in subclass ERMailDelivery (in another package). > Hope you get it, help my code please. > > > - Original Message - > From: Farrukh Ijaz > To: Cheong Hee (Gmail) > Cc: WO-Apple-D

Re: ERMailAttachment - need a public getBodyPart()

2010-09-08 Thread Farrukh Ijaz
On 2010-09-08, at 10:40 AM, Cheong Hee (Gmail) wrote: > Hi > > I need to extend ERMailDelivery, and keep the new class in a new package. > The getBodyPart of ERMailAttachment is not visible since it is defined as > protected in er.javamail package. The subclasses ERMailDataAttachment, > ER

Re: apache vs. tomcat (or glassfish)

2010-09-08 Thread Farrukh Ijaz
Hi Mike, I would advise not to go to GlassFish (or even J2EE) path if you are not gonna utilize any J2EE features which must run on a servlet container. Trust me it's a Pain ... to setup and maintain. Pros: Can work with other J2EE enabled applications No more "No instance available" messages,

Content Streaming

2010-09-06 Thread Farrukh Ijaz
Hi I am facing a strange issue. I have an entity which is used to store media file such as images and videos. I have a direct action which is called with the entry id and it returns a response containing content stream of the media. If I use safari it works fine but on IE, iPhone for mp4 files

Re: EOEditingContext.isDisposed() ... ?

2010-09-03 Thread Farrukh Ijaz
On 2010-09-04, at 2:04 AM, Chuck Hill wrote: > > On Sep 3, 2010, at 2:53 PM, Farrukh Ijaz wrote: > >> Hi, >> >> Is there a way to check if the editingContext is disposed? > > There is, but it is not exposed. > > >> I guess there should be so

EOEditingContext.isDisposed() ... ?

2010-09-03 Thread Farrukh Ijaz
Hi, Is there a way to check if the editingContext is disposed? I guess there should be something called isDisposed(), it is useful for following scenario. private EOEditingContext _editingContext; public EOEditingContext editingContext() { if(_editingContext == null || _editingContext.i

Synchronized Editing Context for Locking/Unlocking

2010-09-03 Thread Farrukh Ijaz
Hi, What is the difference between the two? I noticed both work almost the same way. Usage 1: try { editingContext().lock(); // Do your stuff } finally { editingContext().unlock(); } Usage 2: synchronized(editingContext()) { // Do your stuff } Thanks, Farrukh

Migrations and subsequent changes to DB model

2010-08-29 Thread Farrukh Ijaz
Hi All, I'm using Migrations for the first time. I generated Migration for my model. I created a blank db and use Migration so the db is up to date. How the subsequent changes to the db will be handled using Migrations? Do I need to prepare SQL scripts manually or generating Migration again can

Re: AjaxObserveField on the radio button?

2010-08-21 Thread Farrukh Ijaz
Hi Yung-Luen, First of all, if you are observing multiple fields but updating a single AUC, then you do not need to use multiple AOF, only one is enough. You need to wrap your inputs and AOF inside a form. You can use ERXOptionalForm for this purpose. Also you need to setup fullSubmit attribute

Re: postNotification and editingContext().saveChanges() / editingContext().revert()

2010-08-11 Thread Farrukh Ijaz
On Aug 11, 2010, at 2:35 PM, Farrukh Ijaz wrote: > >> I am using ERXEC with default settings. I guess it takes care of the locking >> automatically. >> >> Sent from my iPad >> >> On 11-Aug-2010, at 11:58 PM, Chuck Hill wrote: >> >>> >

Re: postNotification and editingContext().saveChanges() / editingContext().revert()

2010-08-11 Thread Farrukh Ijaz
I am using ERXEC with default settings. I guess it takes care of the locking automatically. Sent from my iPad On 11-Aug-2010, at 11:58 PM, Chuck Hill wrote: > > On Aug 11, 2010, at 1:41 PM, Farrukh Ijaz wrote: > >> >> >> Sent from my iPad >> >>

Re: postNotification and editingContext().saveChanges() / editingContext().revert()

2010-08-11 Thread Farrukh Ijaz
Sent from my iPad On 11-Aug-2010, at 7:35 PM, Chuck Hill wrote: > > On Aug 11, 2010, at 2:11 AM, Farrukh Ijaz wrote: > >> Hi All, >> >> Is it safe to invoke editingContext().saveChange() or >> editingContext().revert() in a method that is used through

postNotification and editingContext().saveChanges() / editingContext().revert()

2010-08-11 Thread Farrukh Ijaz
Hi All, Is it safe to invoke editingContext().saveChange() or editingContext().revert() in a method that is used through NSSelector and invoked by the NSNotificationCenter on postNotification()? Thanks, Farrukh ___ Do not post admin requests to the

Re: OGNL syntax in inline binding...

2010-08-05 Thread Farrukh Ijaz
You need to define a getter to return the id of the component. What I normally do is I define an optional binding named "id" and in the component I define a private string variable to hold the value of the id such as private String _id; And in the getter I do something like this public String

Re: How to use noConflict to get JQuery andAjax(Wonder)workingtogether?

2010-08-04 Thread Farrukh Ijaz
pp. >> >> What you say with a prototype solution sounds perfect! I'll try that. >> >> I suppose I will have another opportunity later to enter into this jQuery >> thing... >> >> Thanks a lot. >> >> David B. >> >> Le 4 ao

Re: How to use noConflict to get JQuery and Ajax(Wonder)workingtogether?

2010-08-04 Thread Farrukh Ijaz
oConflict()(function() { > // wrap your code that uses jQuery $ > }); > > So you might still have to wrap your original lib, but at least you don't > have to muck with $'s all over the place. > > ms > > On Aug 4, 2010, at 6:35 PM, Farrukh Ijaz wrote: > &

Re: How to use noConflict to get JQuery and Ajax(Wonder)workingtogether?

2010-08-04 Thread Farrukh Ijaz
uction )... > No idea how to do that for now (and no time to think more to it). > > Thanks again, > > Regards. > David B. > > Le 4 août 10 à 22:35, Farrukh Ijaz a écrit : > >> This is not so straight as splitter.js is using jQuery. So even if you use >>

Re: How to use noConflict to get JQuery and Ajax (Wonder)workingtogether?

2010-08-04 Thread Farrukh Ijaz
before the inclusion of the > splitter.js (as it could use the '$')? > > Regards. > David B. > > Le 4 août 10 à 22:19, Farrukh Ijaz a écrit : > >> Hi David, >> >> You simply need to add following two lines in the head section: >> >&

Re: How to use noConflict to get JQuery and Ajax (Wonder) workingtogether?

2010-08-04 Thread Farrukh Ijaz
Hi David, You simply need to add following two lines in the head section: jQuery.noConflict(); From there onwards you need to use jQuery instead of $ sign. Alternatively you can use a short name such as: var j = jQuery.noConflict(); And instead of using $ sign or jQuery, you can use 'j'

Re: checking for null Noob question

2010-07-31 Thread Farrukh Ijaz
Or do the following trick: if(!"N".equals(this.dueDateType()) { return this.dueDateType(); } return ""; Or failsafe operation: if(!(this.dueDateType()+"").equals("N")) { return this.dueDateType(); } return ""; But all above are applicable to strings only. For other types, you always n

Re: SVN and Eclipse

2010-07-30 Thread Farrukh Ijaz
Sent from my iPad On 30-Jul-2010, at 9:12 PM, Mark Ritchie wrote: >> And *I* wouldn't store the binary, only all assets that are needed to create >> it: woproject binary, WO systems libs, Wonder libs, etc. >> After all, the tgz is next to worthless in a year or two, unless you can >> actuall

Re: SVN and Eclipse

2010-07-30 Thread Farrukh Ijaz
On 30-Jul-2010, at 3:57 PM, Valerio Luccio wrote: > Farrukh Ijaz wrote: >> At first place I would avoid svning the tar as it is a binary file and even >> a minor change will change the binary and I guess every time the commit will >> recognize it as new file will commit

Re: SVN and Eclipse

2010-07-30 Thread Farrukh Ijaz
At first place I would avoid svning the tar as it is a binary file and even a minor change will change the binary and I guess every time the commit will recognize it as new file will commit the whole tar instead of differences, as a result it will start eating repository disk space very fast. I

Re: Adaptor's Timeouts

2010-07-27 Thread Farrukh Ijaz
Sorry Guys, My fault. Wrong Apache Rewrite Rules :) It's working fine. Farrukh On 2010-07-27, at 8:22 PM, Farrukh Ijaz wrote: > Hi Mark, > > I have an mp4 file stored in the database. I am using jwplayer to view the > file. If I store the file on disk and configure the

Re: Adaptor's Timeouts

2010-07-27 Thread Farrukh Ijaz
while sending response: java.net.SocketException: Broken pipe So I want to test if this is the problem of the receive timeout of WOAdaptor or not. Do you have any idea? Farrukh On 2010-07-27, at 8:15 PM, Mark Ritchie wrote: > On 27/Jul/2010, at 9:59 AM, Farrukh Ijaz wrote: >> Can any bo

Adaptor's Timeouts

2010-07-27 Thread Farrukh Ijaz
Hi All, Can any body tell me how can I set adaptor's timeouts for applications which are not deployed? (using WOLips parameters may be?) http://lists.apple.com/archives/webobjects-dev/2003/Jun/msg00046.html Farrukh ___ Do not post admin requests to th

ERXKeepAliveResponse for Video Streaming?

2010-07-27 Thread Farrukh Ijaz
Dear All, Anyone has any idea how to use ERXKeepAliveResponse object? I guess it can be used for video streaming? Farrukh ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com

Re: Ajax accordion menu examples

2010-07-24 Thread Farrukh Ijaz
The best way to check is wonder Ajax examples which can be downloaded as part of Wonder Source. Also there is a consistent pattern throughout the Ajax components. If you manage to work one Ajax component and understand the Java API for that, it's easy to understand other components too. http://

Re: willDelete() is not getting fired for children in a tree structured entity

2010-07-24 Thread Farrukh Ijaz
, 2010, at 3:56 PM, Chuck Hill wrote: > >> willDelete() won't be called on the rest until saveChanges() >> >> >> On Jul 23, 2010, at 12:51 PM, Farrukh Ijaz wrote: >> >>> Hi, >>> >>> I have a model where an entity A has a recursive relations

willDelete() is not getting fired for children in a tree structured entity

2010-07-23 Thread Farrukh Ijaz
Hi, I have a model where an entity A has a recursive relationship as parent "toParentOfTypeA()" and children "toChildrenOfTypeA()". Consider it as a tree structured entity. In the model have setup the entity to delete cascade. In the entity I have overriden the method willDelete(). Now when I

If an Editing Context is disposed off?

2010-07-22 Thread Farrukh Ijaz
Hi, Is there a way to check if an editing context is disposed so I could create new one? E.g. private EOEditingContext _editingContext; public EOEditingContext editingContext() { if(_editingContext == null) { // Or _editingContext is disposed off _editingContext = ERXEC

Re: OT: Java desktop dev environments

2010-07-21 Thread Farrukh Ijaz
There is no such free one single consolidated ide that could do the job for you. However, you can combine various tools. Check for JGoodies and JFormDesigner for UI designing. Netbeans is my favorite IDE for Swing based applications. You can also look for existing frameworks that can do 70% job

Re: table name bound to item?

2010-07-21 Thread Farrukh Ijaz
Instead of , use Farrukh Sent from my iPad On 21-Jul-2010, at 9:25 PM, Theodore Petrosky wrote: > I am playing with the excel export of data and need some help. > > I have a WORepetition around a table... that's correct I want many tables > with name = "$theUser.username" (the item object f

Re: refreshing automatically..?

2010-07-20 Thread Farrukh Ijaz
Look for AjaxPing component. It is really worth and save a lot of time. Farrukh Sent from my iPad On 20-Jul-2010, at 8:01 PM, Theodore Petrosky wrote: > I have a component that lists open jobs. I am hunting for a way to refresh > the component automatically. > > If I were talking directly t

Re: detect local IPs

2010-07-13 Thread Farrukh Ijaz
On 2010-07-13, at 11:58 PM, Chuck Hill wrote: > > On Jul 13, 2010, at 1:48 PM, Elim PDT wrote: > >> Suppose multiple users in a local network interact with the same WOApp, is >> there a way for the WOApp to tell each user's local IP and their shared >> public IP? Thanks > > > Check context(

Re: Migrations in Production?

2010-07-13 Thread Farrukh Ijaz
Thanks Guys for your valuable input. I shall probably move forward to convince the team to have staging environment and start using Migrations. Farrukh On 2010-07-13, at 8:39 PM, Pascal Robert wrote: > > Le 10-07-13 à 13:22, Mike Schrag a écrit : > >>> If the variation you have talked about i

Re: Failed to provide primary keys?

2010-07-13 Thread Farrukh Ijaz
Chech if your OS has enough space in /tmp volume. Sent from my iPad On 13-Jul-2010, at 7:45 PM, Kieran Kelleher wrote: > Trying to track this down is like a needle in a haystack and I can never > reproduce it in development. Any ideas on a strategy to capture the root > cause? > > Error proc

Re: Migrations in Production?

2010-07-13 Thread Farrukh Ijaz
On Jul 13, 2010, at 12:08 PM, Farrukh Ijaz wrote: > >> Hi, >> >> Is anyone using Migrations in production environment? If yes, what is your >> experience? I was planning to use it but a bit affraid as db changes on the >> fly frightens me especi

Re: Migrations in Production?

2010-07-13 Thread Farrukh Ijaz
ght modifications. Farrukh > > > On Jul 13, 2010, at 9:08 AM, Farrukh Ijaz wrote: > >> Hi, >> >> Is anyone using Migrations in production environment? If yes, what is your >> experience? I was planning to use it but a bit affraid as db changes on the >&

Migrations in Production?

2010-07-13 Thread Farrukh Ijaz
Hi, Is anyone using Migrations in production environment? If yes, what is your experience? I was planning to use it but a bit affraid as db changes on the fly frightens me especially in production :) Farrukh Sent from my iPad ___ Do not post admin re

Re: EOF and meaningful, modifiable PKs

2010-07-13 Thread Farrukh Ijaz
On 2010-07-13, at 1:36 PM, Hugi Thordarson wrote: > Good morning all. > > I have a large-ish database with meaningful, user modifiable PKs - which > sucks. For legacy reasons, I can't ditch the old PKs entirely in favor of new > ones - which also sucks. However, I need to write to this database

Re: accessing the primarykey???

2010-07-13 Thread Farrukh Ijaz
On 2010-07-13, at 1:41 PM, Theodore Petrosky wrote: > I need a qualifier that gets a primary key... > > is the primary key accessible in a qualifier like this? > > versionQual = Version.JOB.dot(Job.).eq(something); > > My primary key is the Job Number In dataflex and cobol times, PK were

Re: Reflexive relationship with same relationship name?

2010-07-11 Thread Farrukh Ijaz
Very important point highlighted by Chuck. EOF is very efficient in maintaining all types of relations including recursive. You must becareful of cyclic reference as it may lead into stack overflow situation. Also make sure your model should care of the delete rule otherwise... I just deleted my

Re: 20 Second Delay on editingContext.saveChanges()

2010-07-08 Thread Farrukh Ijaz
Hi Greg, Try with the following variation. Farrukh On 2010-07-08, at 5:49 PM, Greg Lappen wrote: > Ah, yes, thanks for catching that. I fixed that and re-tested, and I still > get the 20 second delay. The code now looks like: > > > public class LPFile extends _LPFile { > >

Re: [***SPAM***] ERModernLook and Branch Button's Style

2010-07-07 Thread Farrukh Ijaz
Beautiful David! This is just perfect. Bundle of Thanks for the quick update. Farrukh <> On 2010-07-07, at 7:29 PM, David LeBer wrote: > > On 2010-07-07, at 5:31 AM, Farrukh Ijaz wrote: > >> Hi, >> >> 1 Question and 1 Solution. >> >> First the

Re: Switching DB at runtime?

2010-07-07 Thread Farrukh Ijaz
sure what would happen, but my guess is that > this is not intended and "bad things" would likely result. > > I am not sure what you are trying to achieve, but I would spend time thinking > of a different way rather than trying to make his work. > > Chuck > &

ERModernLook and Branch Button's Style

2010-07-07 Thread Farrukh Ijaz
Hi,1 Question and 1 Solution.First the Question:I'm using ERModernLook. How can I apply the style of ERModernLook buttons to the branch buttons? I inspected the HTML and found that the template's buttons are actually hyperlinks with Button class. Where as branch buttons are just input of type submi

Re: Extending components but using binding and html of parent

2010-07-05 Thread Farrukh Ijaz
ession().languages()); >String wodString = > ResourceManagerAdditions.stringFromResource(componentPath + "wod", null, > session().languages()); >return WOComponent.templateWithHTMLString(htmlString, wodString, > session().languages()); >} > >

Extending components but using binding and html of parent

2010-07-05 Thread Farrukh Ijaz
Hi, How can I extend an existing component to override java methods and introduce new interfaces to the java class of the component but use the binding and html part of it's parent? Let's say I want to override the ERModernLook but I need to introduce some interfaces to it become compatible wit

Re: ERRest and Plural Name for Entity

2010-07-04 Thread Farrukh Ijaz
y > keys. Slightly tricky problem there if it is, because it's unclear the best > way to fix that in the general case. It might make sense to declare a "Rest" > language, so we don't inherit any normal overrides. I'll have to fiddle with > that at some point. >

ERRest and Plural Name for Entity

2010-07-04 Thread Farrukh Ijaz
Hi, I'm using ERRest Framework. I want to understand how the Plural names are being picked up by the Framework. I've few entities as MediaDocument, MediaImage and MediaSection. I have added them to the handler using addDefaultRoutes(?.ENTITY_NAME) method. I don't know why the response is diffe

Switching DB at runtime?

2010-07-02 Thread Farrukh Ijaz
Question! Is it possible to switch the DB settings of a running application using API (not the properties file) and the application start using the new DB from the next transaction. The DBs in this case are identicle in structure but data may differ. Farrukh Sent from my iPad

Re: Problem with Ajax Components in AjaxModalDialog...

2010-07-01 Thread Farrukh Ijaz
All your form fields that are part of the modal dialog must be enclosed by an form including the ajax submit buttons. You can use ERXOptionalForm. If you set the action of the ajax submit button the set the formname property of the button to the name of your modal's ajax form. Farrukh Sent fro

WOServletContext.servletContext() vs WOServletContext().servletConfig().getServletContext()

2010-07-01 Thread Farrukh Ijaz
Hi, Just thought to share for information. It's NOT a Wonder bug but looks like the WebObjects bug. (correct me if I'm wrong) A call to (WOServletContext context()).servletContext() returns null But a call to (WOServletContext context()).servletConfig().getServletContext() returns the instance

Re: Multiple Models, Coalesced Transactions - is it possible?

2010-06-29 Thread Farrukh Ijaz
On 2010-06-30, at 5:56 AM, Andrew Lindesay wrote: > Hello; > > I have 5-6 models in an application. Thus far this has worked out fine > because many database servers were employed and a socket or two to each was > not a problem. Now the database servers have been consolidated and with each >

Re: ERXFrameworkPrincipal

2010-06-29 Thread Farrukh Ijaz
Thanks, it worked after setting up the principalClass property of the project which was set to nothing. Farrukh On 2010-06-29, at 10:20 PM, Mike Schrag wrote: >> Thanks for your reply. Sorry, but I couldn't get what you just said. Can you >> please elaborate? See my comments below? >> >> On

WOApplication.application() ... ?

2010-06-29 Thread Farrukh Ijaz
Hi, Question. When I run my WO Application on WebObjects Application Server (JavaMonitor + wotaskd), it runs inside it's own Java process. So technically there is only one Application class running inside the JVM. If I call WOApplication.application() method, it shall give me the instance of t

Re: ERXFrameworkPrincipal

2010-06-29 Thread Farrukh Ijaz
this framework. Is there any other place where I need to call certain method(s) to make it work? Thanks in advance, Farrukh > > On Jun 29, 2010, at 1:30 PM, Farrukh Ijaz wrote: > >> Hi, >> >> I'm trying to use the ERXFrameworkPrincipal class. Can s

ERXFrameworkPrincipal

2010-06-29 Thread Farrukh Ijaz
Hi, I'm trying to use the ERXFrameworkPrincipal class. Can someone please explain in layman's term how I should use it? Below is the code. package com.xyz; // Hidden Imports import er.extensions.ERXFrameworkPrincipal; import er.rest.routes.ERXRouteRequestHandler; public class MyWSFramework ex

Re: Pattern and Replace for Application URL

2010-06-27 Thread Farrukh Ijaz
quot;Installing Wonder Patches..."); installPatches(); NSLog.out.appendln("Wonder Patches Installed!"); super.finishInitialization(); } On 2010-06-27, at 3:29 PM, Lachlan Deck wrote: > Hi Farrukh, > > On 26/06/2010, at 10:5

Re: Pattern and Replace for Application URL

2010-06-26 Thread Farrukh Ijaz
Hi Lachlan, The worequest class is er.extensions.appserver.ERXRequest The wocontext raises NullPointerException as request.context() returns null. Regards, Farrukh On 2010-06-26, at 2:03 PM, Lachlan Deck wrote: > Hi Farrukh, > > On 26/06/2010, at 2:05 PM, Farrukh Ijaz wrote: >

Re: Pattern and Replace for Application URL

2010-06-25 Thread Farrukh Ijaz
_rewriteURL but that is still not working for me. Farrukh On 2010-06-25, at 4:54 PM, Kieran Kelleher wrote: > Probably true. > > On Jun 25, 2010, at 9:44 AM, Farrukh Ijaz wrote: > >> Thanks once again. >> >> I do not disagree with you however I think I'm

Re: Pattern and Replace for Application URL

2010-06-25 Thread Farrukh Ijaz
rules and see what > happens. > > > On Jun 25, 2010, at 9:08 AM, Farrukh Ijaz wrote: > >> Hi Kieran, >> >> Thanks for the immediate response. >> >> Is your instance running on Tomcat or any J2EE Server as SSDD or WAR? If >> not, then the rule

Re: Pattern and Replace for Application URL

2010-06-25 Thread Farrukh Ijaz
RewriteRule ^/app$ /cgi-bin/WebObjects/MyApplication.woa [NC,PT,L] > > > er.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/MyApplication.woa > er.extensions.ERXApplication.replaceApplicationPath.replace=/app > > > On Jun 25, 2010

Pattern and Replace for Application URL

2010-06-25 Thread Farrukh Ijaz
Hi, RewriteRule /AppShortName(.*) /Application/WebObjects/Application.woa$1 [L, PT, QSA] When I access the application using /AppShortName in the browser, /AppShortName remains in the browser url address bar. However the generated response source code contains links with /Application/WebObject

Re: Avoiding java.lang.OutOfMemoryError: Java heap space

2010-06-22 Thread Farrukh Ijaz
If your pages are using entities, then perhaps you need to dispose them off by disposing the editing context after the content is written to the stream. Farrukh Sent from my iPad On 22-Jun-2010, at 10:25 PM, Gennady Kushnir wrote: > Hello List! > > I have a task to form an archive of a good

Re: Session Problem for J2ee deployment

2010-06-21 Thread Farrukh Ijaz
i Farrukh, > > On Jun 21, 2010, at 12:45 AM, Farrukh Ijaz wrote: > >> After spending sometime, I've come to know that the problem occurs if I use >> rewrite rules for direct actions. Below is the code: >> >> public WOActionResults linkManagerAction() { >&

Re: Session Problem for J2ee deployment

2010-06-21 Thread Farrukh Ijaz
he session is null. The rewrite rule is as follows: RewriteRule ^/app/wa/(.*)$ /Application/WebObjects/Application.woa/wa/$1 [P] Any ideas please? Farrukh On 2010-06-20, at 6:01 PM, Farrukh Ijaz wrote: > Hi, > > I am facing quite a strange problem. I've an application which I

Session Problem for J2ee deployment

2010-06-20 Thread Farrukh Ijaz
Hi, I am facing quite a strange problem. I've an application which I've deployed on GlassFish on port 28080. Everything seems to work fine. When I use Apache mod_jk or mod_proxy_ajp module, I am getting null session for direct actions. Is this something related to Apache or WebObjects J2ee depl

Re: inline bindings and valid...

2010-06-19 Thread Farrukh Ijaz
Ignore these stupid warnings. You know better that the binding will work at runtime or not. Sometimes I get quite weird warnings with Eclipse which complains for missing WO components but I run the application without any problem. Two things you always do. Avoid using nightly builds and stick

Re: .wo template parsing problem with xml-tag named "workingpr"

2010-06-16 Thread Farrukh Ijaz
Just suggestions: At first place I won't use WO components to generate XML. If there is no other choice, I would prefer Yup, that's the case. Every tag that starts with "wo" fails. > > Dang, that's awesomely lame. > > - hugi > > > > On 16.6.2010, at 13:44, Chuck Hill wrote: > >> My guess i

Re: WebObjects on GlassFish and jsp rendering garbage characters for wo:component

2010-06-15 Thread Farrukh Ijaz
t; > > > Am 15.06.2010 um 12:54 schrieb Farrukh Ijaz: > >> Hi, >> >> I've deployed my Wonder application on GlassFish as SSDD. Everything works >> fine when I'm using the Wonder application within the GlassFish context. >> However when I

WebObjects on GlassFish and jsp rendering garbage characters for wo:component

2010-06-15 Thread Farrukh Ijaz
Hi, I've deployed my Wonder application on GlassFish as SSDD. Everything works fine when I'm using the Wonder application within the GlassFish context. However when I create a JSP and use any of the existing component in the jsp, instead of rendering the component, it generates garbage characte

Re: java.lang.UnsupportedClassVersionError: Bad version number in.class file

2010-06-14 Thread Farrukh Ijaz
I am trying to set up a new development > machine. > > Thanks in Advance > Bearko > > > On Mon, Jun 14, 2010 at 9:43 PM, Farrukh Ijaz > wrote: > Thats fine! JDK 1.6 compiler can generate code compatible to JDK 1.5. The > message is for the target system. I&#x

Re: java.lang.UnsupportedClassVersionError: Bad version number in.class file

2010-06-14 Thread Farrukh Ijaz
> when I try and add the JRE!!! > > > Cheers > Bearko > > > > On Mon, Jun 14, 2010 at 9:24 PM, Farrukh Ijaz > wrote: > Eclipse > Preferences > Java > Compiler > > Set it to Java 1.5 before compiling. > > You can do the similar setup per project.

Re: java.lang.UnsupportedClassVersionError: Bad version number in.class file

2010-06-14 Thread Farrukh Ijaz
Eclipse > Preferences > Java > Compiler Set it to Java 1.5 before compiling. You can do the similar setup per project. Farrukh On 2010-06-14, at 2:51 PM, Jake Bearkley wrote: > HI All, > > I am trying to build an application on Snow Leopard with Java 1.6 and run on > a Leopard server with Ja

Re: EOQualifier to qualify NSTimestamp by month

2010-06-01 Thread Farrukh Ijaz
Hi Joe, If you have a smaller dataset, you can avoid all the nasty JDBC stuff and achieve the goal using: public NSArray entities() { NSArray entities = EOUtilities.objectsForEntityNamed(session().defaultEditingContext(), YourEntity.ENTITY_NAME); return YourEntity.DATE_COLUMN.d

Re: JavaScript Problems with AjaxSubmitButton

2010-05-29 Thread Farrukh Ijaz
Do the following and it will work: Add a method as follows in your script: function ajaxCheckValidations(o) { checkValidations(); return o.form.onsubmit(); } And change the AjaxSubmitButton binding as follows: AjaxSubmitButton1: AjaxSubmitButton { value = "Save";

Re: Ajax List Filtering

2010-05-29 Thread Farrukh Ijaz
Try move the FormValuesObserveField component inside the ResultsContainer and test it. First Name: Last Name: ... (list of results) On 2010-05-29, at 7:30 PM, Joe Kramer wrote: > Hi everyone, > > Sorry to be a bother, but I was wondering if anyone had any ideas for me on > this issue.

Re: Styling question

2010-05-25 Thread Farrukh Ijaz
Hi, Design a framework "MyTheme" and put all the required images, css, js etc in the WebServerResources folder e.g. /WebServerResources /css /js /images Define the complete UI of you application using a default set of CSS files. E.g. default.css contains is something li

Re: appendToResponse ??

2010-05-04 Thread Farrukh Ijaz
Did you try using AjaxModalDialog.update(context()) ? before the return statement of the action you invoked? On 2010-05-04, at 11:57 PM, Theodore Petrosky wrote: > I am using an AjaxModalDialog with an action that returns the 'nextPage'. > (right from the ajax examples)... > > I want the page

Re: saveChanges/revert on EOEditingContext

2010-05-01 Thread Farrukh Ijaz
t doesn't protect your other > threads' EC's, which will be receiving change notifications asynchronously > while you're trying to use the EOs in them. you're basically just asking for > nasty problems. > > ms > > On May 1, 2010, at 4:19 PM, Far

Re: saveChanges/revert on EOEditingContext

2010-05-01 Thread Farrukh Ijaz
advance, Farrukh On 2010-05-01, at 8:22 PM, Farrukh Ijaz wrote: > Thank you very much sir. Now I won't forget the lesson for the rest of my > life. :) > > Another question, is it safe not to lock EC if I'm sure I'm not gonna modify > the objects fetched using

Re: saveChanges/revert on EOEditingContext

2010-05-01 Thread Farrukh Ijaz
huck Hill wrote: > > On May 1, 2010, at 10:01 AM, Farrukh Ijaz wrote: > >> Is it legal to perform saveChanges/revert on EOEditingContext in a >> traditional JDBC transaction commit/rollback style? >> >> EOEditingContext ec = // Got EOEditingContext from Somewhere...

saveChanges/revert on EOEditingContext

2010-05-01 Thread Farrukh Ijaz
Is it legal to perform saveChanges/revert on EOEditingContext in a traditional JDBC transaction commit/rollback style? EOEditingContext ec = // Got EOEditingContext from Somewhere... // ec is not locked... // did a lot of fetches... // modified some objects fetched using this ec... try {

-WOCachingEnabled=true

2010-05-01 Thread Farrukh Ijaz
Hi, I thought setting up -WOCachingEnabled=true enables application to cache component definitions by default. But why the constructor of the component is called on every refresh. Some of the components use session object in their definitions or other methods. But I've also noticed that the ref

Re: action on close....

2010-04-30 Thread Farrukh Ijaz
If AjaxModalContainer is not the constraint, try using AjaxModalDialog. Everything is possible BTW with the technologies available today. If you don't find simple/straightforward option, there are workarounds. A simple workaround is that, if you can use jQuery, you can quite easily attach a java

Re: Getting Started with ERRest / Could not initialize class er.rest.format.ERXRestFormat error

2010-04-30 Thread Farrukh Ijaz
I quite often face this problem when I import a projects into workspace and try running it. I get the problem NoClassDefFoundError but manually invoking Project/Clean... works for me. May be it's eclipse problem. On 2010-04-30, at 8:52 PM, Todor Mitevski wrote: > Most of the time java.lang.NoCl

Re: Instance gets down after approx 500 hits; Database backup; Connection pooling with Single Database Context

2010-04-23 Thread Farrukh Ijaz
Thanks Chuck for your response. On 2010-04-23, at 1:09 AM, Chuck Hill wrote: > > On Apr 22, 2010, at 2:17 PM, Farrukh Ijaz wrote: > >> Hi WOGurus, >> >> 1. We've few applications based on same database structure. What happens, >> one of the application

Instance gets down after approx 500 hits; Database backup; Connection pooling with Single Database Context

2010-04-22 Thread Farrukh Ijaz
Hi WOGurus, 1. We've few applications based on same database structure. What happens, one of the application after approximately 500 hits gets down. What can be the reason for that? (I know the question is too broad but would appreciate for any clues). 2. Sometimes the logs show message with R

Re: Javascript is not called by AjaxSubmitButton

2010-04-22 Thread Farrukh Ijaz
If you're validation script is running on form's "onSubmit" event. I suspect these scripts won't get fired with AjaxSubmitButton however you can fire them in onClickBefore event of AjaxSubmitButton and if the script returns true the data will be posted to the action E.g. Case 1: Normal Submit B

Re: Submit form and pop up a AjaxModalDialog confirming submission

2010-04-22 Thread Farrukh Ijaz
was a little cleaner to do open the ModalDialog programmatically. > > Ben > > On Wed, Apr 21, 2010 at 7:57 PM, Farrukh Ijaz > wrote: > Try this, I use AjaxSubmitButton instead of AjaxModalDialogOpener using > javascript function. If your component has an AjaxModalDialo

Re: Submit form and pop up a AjaxModalDialog confirming submission

2010-04-21 Thread Farrukh Ijaz
Try this, I use AjaxSubmitButton instead of AjaxModalDialogOpener using javascript function. If your component has an AjaxModalDialog component with some id "sampleDialog", you'll have a javascript function at runtime as "openAMD_SampleDialog()" to open the dialog. > >"$purchasePartNumber"

Need some help about ERDivaLook

2010-04-20 Thread Farrukh Ijaz
Hi, Where can I find a simple and already configured stylesheet that I can use with ERDivaLook? It's quite cumbersome to identify the ids and classes that need to be styled. Any link to some solid documentation would be great. Also I've my own D2W templates extended from Wonder's Neutral Look wh

<    1   2   3