• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: CSS again...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CSS again...


  • Subject: Re: CSS again...
  • From: Erwin <email@hidden>
  • Date: Tue, 22 Feb 2005 14:05:28 +0100

Thanks Florijan, this is surely the most efficient way to do it and it runs very well...

My concern was about using a WOString to get this path from a WOComponent..
I got the WOComponent returning correctly the string but I don't know how to
bind it into the <LINK rule.... ?


it's easy to set a dynamic title in <TITLE> using WOBuilder, but how to insert a <LINK and the corrresponding href WOString...
I tried to do it manually in the.html file but it seems to be incorrect.....



Erwin



Message: 14
Date: Tue, 22 Feb 2005 11:25:32 +0100
From: Florijan Stamenkovic <email@hidden>
Subject: Re: CSS again...
To: WebObjects Development <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset="us-ascii"

This is an cutout from a thread that concerned page design in WO,
including CSS. This is describing how to use an external CSS in the
most simple way I can see.


You want to put your stuff (CSS) in /Library/WebServer and then use a link like

<link rel="stylesheet" href="/CSSs/myCSS.css" type="text/css">

This assumes that "myCSS.css" is in /Library/WebServer/CSSs/myCSS.css

You can of course use whatever path you want, as long as it is within
the WebServer. And note how the href is typed in the html.

That should work. I did work for me fine. In that case as I see it you
don't have a point in having that function, except maybe for linking in
different CSSs depending on...

Hope this helps.
Florijan


On Feb 22, 2005, at 10:25, Erwin wrote:

writing CSS STYLE in my HTML code works fine...but
I searched among all posts dedicated to CSS to find a way using an
external CSS file

should I insert manually a   <LINK REL="stylesheet' TYPE="text/css"
HREF="style1.css">
between <HEAD> and </HEAD> ?

if I have a non-synch component returning the css path (thanks
Steve...  with the necessary API bindings)
...
    public String pathForCSS() {
        WOResourceManager rm = application().resourceManager();
        return rm.urlForResourceNamed(stylesheetFilename(),
stylesheetFramework(), null, context().request());
    }

where should I insert this component ? how can I get back the path
into my <LINK HREF=...
I am quite a little bit confused about binding outside the <BODY.....>

Erwin _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 2026 bytes
Desc: not available
Url : http://lists.apple.com/mailman/private/webobjects-dev/attachments/ 20050222/686f4eb7/attachment.bin


------------------------------

Message: 15
Date: Tue, 22 Feb 2005 12:17:41 +0100
From: email@hidden
Subject: Re: SQL log from ec.saveChanges
To: "WOdev List" <email@hidden>,	"Drew Thoeni"
	<email@hidden>
Message-ID: <006501c518d0$1fbf92c0$email@hidden>
Content-Type: text/plain; charset="iso-8859-1"

follow this
http://developer.apple.com/documentation/WebObjects/ WO_Install_Win_Sol/WOOtherIG_Overview/chapter_1_section_3.html


/tmp/logWebObjects
"WebObjects.log"

this is something like console on the server.

you must add also -DNSDebugGroups=1: or what ever you need.
Sako.

----- Original Message -----
From: "Drew Thoeni" <email@hidden>
To: "WOdev List" <email@hidden>
Sent: Tuesday, February 22, 2005 12:05 AM
Subject: SQL log from ec.saveChanges


I'm looking to see the SQL that is sent from ec.saveChanges. Is there a
place to view the SQL in WO, or a flag that needs to be set so it
displays in console?


Regards,

Drew

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

email@hidden

This email sent to email@hidden





------------------------------

Message: 16
Date: Tue, 22 Feb 2005 07:00:31 -0500
From: Drew Thoeni <email@hidden>
Subject: why ec.refreshAllObjects() required?
To: WOdev List <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset="us-ascii"

I have some code (below) that adds to two many-to-many relationships. I
can run it once (and it's twin that removes these entries) and it works
just fine. But, when I run it the second time, the tables get updated
but the ec does not. When I add the line "ec.refreshAllObjects()" I can
then add and remove the relationships as many times as I want and all
is well in the tables and ec.

Generally when I find a situation like this I attribute it to my
shallow understanding of WO. If it is critical or mysterious enough, I
ask the all-knowing list. Occasionally it turns out to be some oddity
in WO. Which is it here?

Regards,

Drew

// Note: This method is resides in the "Class" table (an unfortunate
name) and is called from

public void joinClass(EOEditingContext ec, Application application,
Session session) {
// This method adds a student to class (inserts a row into
ClassStudent) and
// Adds an entry into BookStudent for each book this student has for
this class.


// this step-by-step join is to allow awakeOnInsertion to set
variables in this unflattened table.
ClassStudent newGPJoin =
(ClassStudent)EOUtilities.createAndInsertInstance(ec,"ClassStudent");

session.currentStudent.addObjectToBothSidesOfRelationshipWithKey(newGPJ o
in,"classStudents");
this.addObjectToBothSidesOfRelationshipWithKey(newGPJoin,
"classStudents");

// add relationship into table BookStudent, student to each book, and
set class number.
NSArray tempBookList = this.books();
int count = tempBookList.count();
Book tempBookItem = (Book)tempBookList.objectAtIndex(0);
for(int i = 0 ; i < count ; i++) {
//Make a new bookStudent Object
BookStudent newCPJoin =
(BookStudent)EOUtilities.createAndInsertInstance(ec,"BookStudent");
newCPJoin.setClassNumber(this.classNumber());

session.currentStudent.addObjectToBothSidesOfRelationshipWithKey(newCPJ o
in,"bookStudents");

((Book)tempBookList.objectAtIndex(i)).addObjectToBothSidesOfRelationshi p
WithKey(newCPJoin, "bookStudents");
}
ec.saveChanges();
ec.refreshAllObjects(); // WITHOUT THIS LINE, CODE WILL NOT WORK
REPEATEDLY.
this.embargoClassIfNeeded(ec, application, session);
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 3196 bytes
Desc: not available
Url : http://lists.apple.com/mailman/private/webobjects-dev/attachments/ 20050222/5809417e/attachment.bin


------------------------------

_______________________________________________
Webobjects-dev mailing list
email@hidden
http://lists.apple.com/mailman/listinfo/webobjects-dev

End of Webobjects-dev Digest, Vol 2, Issue 83
*********************************************



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: CSS again...
      • From: Colin Clark <email@hidden>
  • Prev by Date: Re: WO components (Project Builder, WOBuilder EOModeler etc) refuse to start up
  • Next by Date: Re: wotaskd failing to start after 10.3.8 Server
  • Previous by thread: Re: CSS again...
  • Next by thread: Re: CSS again...
  • Index(es):
    • Date
    • Thread